Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/examples/rump/img2cgd * fix error print
details: https://anonhg.NetBSD.org/src/rev/8b8831912d98
branches: trunk
changeset: 747304:8b8831912d98
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Sep 08 21:51:33 2009 +0000
description:
* fix error print
* adjust resulting image minsize
diffstat:
share/examples/rump/img2cgd/img2cgd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 83b3fa446635 -r 8b8831912d98 share/examples/rump/img2cgd/img2cgd.c
--- a/share/examples/rump/img2cgd/img2cgd.c Tue Sep 08 21:48:25 2009 +0000
+++ b/share/examples/rump/img2cgd/img2cgd.c Tue Sep 08 21:51:33 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: img2cgd.c,v 1.1 2009/09/08 21:48:25 pooka Exp $ */
+/* $NetBSD: img2cgd.c,v 1.2 2009/09/08 21:51:33 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -48,7 +48,7 @@
#define SIZEOFF 8
#define SKIPLABEL 8192
-#define IMG_MINSIZE (128*1024) /* label/mbr/etc search looks here and there */
+#define IMG_MINSIZE (120*1024) /* label/mbr/etc search looks here and there */
static void
usage(void)
@@ -170,7 +170,7 @@
if (pread(fd, &tmpval, 8, MAGOFF) != 8)
err(1, "magic read failed");
if (tmpval != MYMAGIC)
- errx(1, "%s is not a valid image", img_file);
+ errx(1, "%s is not a valid image", cgd_file);
if (pread(fd, &tmpval, 8, SIZEOFF) != 8)
errx(1, "size read failed");
close(fd);
Home |
Main Index |
Thread Index |
Old Index