summaryrefslogtreecommitdiff
path: root/util/buildrom
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-04-11 23:36:02 +0000
committerStefan Reinauer <stepan@openbios.org>2007-04-11 23:36:02 +0000
commitf43cb68606443b6d0f74d63ebe652f869fdded93 (patch)
tree2ebc75cd5800daae5e118a50670df9b49a39334c /util/buildrom
parent78b5e37e8c086696594cd05edf0c4fd9527aa1fc (diff)
Trivial patch: Make buildrom a little bit more verbose.
It shows the remaining space in an image now. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2604 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/buildrom')
-rw-r--r--util/buildrom/buildrom.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/util/buildrom/buildrom.c b/util/buildrom/buildrom.c
index 36c2443d78..2fdd35cb0b 100644
--- a/util/buildrom/buildrom.c
+++ b/util/buildrom/buildrom.c
@@ -65,10 +65,17 @@ int main(int argc, char *argv[])
if (fstat(payloadfd, &payloadbuf) < 0)
fatal("stat of infile");
if (payloadbuf.st_size > (romsize - size)){
- fprintf(stderr, "payload (%d) + linuxbios (%d) size larger than ROM (%d) size!\n", payloadbuf.st_size, size, romsize);
+ fprintf(stderr, "ERROR: payload (%d) + linuxbios (%d) - Size is %d bytes larger than ROM size (%d).\n",
+ payloadbuf.st_size, size,
+ payloadbuf.st_size+size-romsize,
+ romsize);
exit(1);
}
+ printf("Payload: %d LinuxBIOS: %d ROM size: %d Left space: %d\n",
+ payloadbuf.st_size, size, romsize,
+ romsize-payloadbuf.st_size-size);
+
cp = malloc(romsize);
if (!cp)
fatal("malloc buffer");