summaryrefslogtreecommitdiff
path: root/util/buildrom/buildrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/buildrom/buildrom.c')
-rw-r--r--util/buildrom/buildrom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/buildrom/buildrom.c b/util/buildrom/buildrom.c
index 9dde492d0f..36c2443d78 100644
--- a/util/buildrom/buildrom.c
+++ b/util/buildrom/buildrom.c
@@ -64,8 +64,10 @@ int main(int argc, char *argv[])
if (fstat(payloadfd, &payloadbuf) < 0)
fatal("stat of infile");
- if (payloadbuf.st_size > (romsize - size))
- fatal("payload + linuxbios size larger than ROM size!\n");
+ if (payloadbuf.st_size > (romsize - size)){
+ fprintf(stderr, "payload (%d) + linuxbios (%d) size larger than ROM (%d) size!\n", payloadbuf.st_size, size, romsize);
+ exit(1);
+ }
cp = malloc(romsize);
if (!cp)