Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp700/stand/xxboot Improve error message



details:   https://anonhg.NetBSD.org/src/rev/c3d5487a469f
branches:  trunk
changeset: 791372:c3d5487a469f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Nov 14 13:02:57 2013 +0000

description:
Improve error message

diffstat:

 sys/arch/hp700/stand/xxboot/iplsum.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 83bc33d1faf9 -r c3d5487a469f sys/arch/hp700/stand/xxboot/iplsum.c
--- a/sys/arch/hp700/stand/xxboot/iplsum.c      Thu Nov 14 13:01:26 2013 +0000
+++ b/sys/arch/hp700/stand/xxboot/iplsum.c      Thu Nov 14 13:02:57 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iplsum.c,v 1.6 2012/02/24 18:45:20 skrll Exp $ */
+/*     $NetBSD: iplsum.c,v 1.7 2013/11/14 13:02:57 skrll Exp $ */
 
 /*
  * Calculate 32bit checksum of IPL and store in a certain location
@@ -57,7 +57,7 @@
                fprintf(stderr, "%s: too short\n", argv[1]);
                return 1;
        } else if (len > BOOTSIZE) {
-               fprintf(stderr, "%s: too long\n", argv[1]);
+               fprintf(stderr, "%s: too long (%d vs %d)\n", argv[1], len, BOOTSIZE);
                return 1;
        }
        (void) fclose(fp);



Home | Main Index | Thread Index | Old Index