Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Enhance a panic message slightly



details:   https://anonhg.NetBSD.org/src/rev/e1f95072dbb2
branches:  trunk
changeset: 768833:e1f95072dbb2
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Aug 27 19:52:22 2011 +0000

description:
Enhance a panic message slightly

diffstat:

 sys/kern/subr_autoconf.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 78a0a7f929f7 -r e1f95072dbb2 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Sat Aug 27 19:25:35 2011 +0000
+++ b/sys/kern/subr_autoconf.c  Sat Aug 27 19:52:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.218 2011/08/09 21:07:14 dyoung Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.219 2011/08/27 19:52:22 martin Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.218 2011/08/09 21:07:14 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.219 2011/08/27 19:52:22 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1314,7 +1314,8 @@
 
        if ((ca->ca_flags & DVF_PRIV_ALLOC) == 0 &&
            ca->ca_devsize < sizeof(struct device))
-               panic("config_devalloc: %s", cf->cf_atname);
+               panic("config_devalloc: %s (%zu < %zu)", cf->cf_atname,
+                   ca->ca_devsize, sizeof(struct device));
 
        /* get memory for all device vars */
        KASSERT((ca->ca_flags & DVF_PRIV_ALLOC) || ca->ca_devsize >= sizeof(struct device));



Home | Main Index | Thread Index | Old Index