Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config print more info about the overflow



details:   https://anonhg.NetBSD.org/src/rev/32066413ec54
branches:  trunk
changeset: 333352:32066413ec54
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 30 01:36:13 2014 +0000

description:
print more info about the overflow

diffstat:

 usr.bin/config/mkheaders.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4b3e891268bc -r 32066413ec54 usr.bin/config/mkheaders.c
--- a/usr.bin/config/mkheaders.c        Thu Oct 30 01:26:20 2014 +0000
+++ b/usr.bin/config/mkheaders.c        Thu Oct 30 01:36:13 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkheaders.c,v 1.22 2014/10/29 17:14:50 christos Exp $  */
+/*     $NetBSD: mkheaders.c,v 1.23 2014/10/30 01:36:13 christos Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: mkheaders.c,v 1.22 2014/10/29 17:14:50 christos Exp $");
+__RCSID("$NetBSD: mkheaders.c,v 1.23 2014/10/30 01:36:13 christos Exp $");
 
 #include <sys/param.h>
 #include <ctype.h>
@@ -149,7 +149,7 @@
                /* Otherwise shove through a 32bit CRC function */
                h = crc_buf(0, str, strlen(str));
        else if (h > UINT_MAX)
-               panic("overflow");
+               panic("overflow %s = 0x%lx", str, h);
 
        /* Avoid colliding with the value used for undefined options. */
        /* At least until I stop any options being set to zero */



Home | Main Index | Thread Index | Old Index