summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2008-09-02 19:21:29 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2008-09-02 19:21:29 +0000
commit359b97098eaf6797095d750331f36fef7b85ca1b (patch)
tree54a7c7cb84c18b6453fbb62ff822f3667be30ea3 /distrib
parent515e538a073e21d6705d296c6ea932d050d1b528 (diff)
If the image size is known to be too big, print out the sizes.
ok deraadt@ miod@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/common/elfrdsetroot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/distrib/common/elfrdsetroot.c b/distrib/common/elfrdsetroot.c
index 506d984f22f..6367626d8d1 100644
--- a/distrib/common/elfrdsetroot.c
+++ b/distrib/common/elfrdsetroot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elfrdsetroot.c,v 1.12 2007/08/02 23:10:05 ray Exp $ */
+/* $OpenBSD: elfrdsetroot.c,v 1.13 2008/09/02 19:21:28 drahn Exp $ */
/* $NetBSD: rdsetroot.c,v 1.2 1995/10/13 16:38:39 gwr Exp $ */
/*
@@ -177,7 +177,8 @@ main(int argc, char **argv)
}
if (S_ISREG(sstat.st_mode) &&
sstat.st_size > rd_root_size_val) {
- fprintf(stderr, "ramdisk too small\n");
+ fprintf(stderr, "ramdisk too small 0x%x 0x%x\n",
+ (long)sstat.st_size, rd_root_size_val);
exit(1);
}
n = read(STDIN_FILENO, dataseg + rd_root_image_off,