Source-Changes-HG archive

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

[src/trunk]: src/sys/kern provide a diagnostic for unsplit drivers.



details:   https://anonhg.NetBSD.org/src/rev/fc1e4d021daa
branches:  trunk
changeset: 765599:fc1e4d021daa
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jun 01 02:43:33 2011 +0000

description:
provide a diagnostic for unsplit drivers.

diffstat:

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

diffs (28 lines):

diff -r 2a0cd3753987 -r fc1e4d021daa sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Wed Jun 01 02:22:18 2011 +0000
+++ b/sys/kern/subr_autoconf.c  Wed Jun 01 02:43:33 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.215 2011/04/24 18:46:22 rmind Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.216 2011/06/01 02:43:33 christos 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.215 2011/04/24 18:46:22 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.216 2011/06/01 02:43:33 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1330,6 +1330,9 @@
                dev = kmem_zalloc(sizeof(*dev), KM_SLEEP);
        } else {
                dev = dev_private;
+#ifdef DIAGNOSTIC
+               printf("%s has not been converted to device_t\n", cd->cd_name);
+#endif
        }
        if (dev == NULL)
                panic("config_devalloc: memory allocation for device_t failed");



Home | Main Index | Thread Index | Old Index