summaryrefslogtreecommitdiff
path: root/util/buildrom
diff options
context:
space:
mode:
Diffstat (limited to 'util/buildrom')
-rw-r--r--util/buildrom/buildrom.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/util/buildrom/buildrom.c b/util/buildrom/buildrom.c
index 44f0c44186..e2c2e7783e 100644
--- a/util/buildrom/buildrom.c
+++ b/util/buildrom/buildrom.c
@@ -55,8 +55,11 @@ main(int argc, char *argv[]) {
if (fstat(infd, &inbuf) < 0)
fatal("stat of infile");
- if (inbuf.st_size > size)
- fatal("input file larger than allowed size!\n");
+ if (inbuf.st_size > size) {
+ fprintf(stderr, "linuxbios image is %d bytes; only %d allowed\n",
+ inbuf.st_size, size);
+ fatal("Linuxbios input file larger than allowed size!\n");
+ }
if (fstat(payloadfd, &payloadbuf) < 0)
fatal("stat of infile");