Module Name:    src
Committed By:   christos
Date:           Wed Jun  1 02:43:33 UTC 2011

Modified Files:
        src/sys/kern: subr_autoconf.c

Log Message:
provide a diagnostic for unsplit drivers.


To generate a diff of this commit:
cvs rdiff -u -r1.215 -r1.216 src/sys/kern/subr_autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_autoconf.c
diff -u src/sys/kern/subr_autoconf.c:1.215 src/sys/kern/subr_autoconf.c:1.216
--- src/sys/kern/subr_autoconf.c:1.215	Sun Apr 24 14:46:22 2011
+++ src/sys/kern/subr_autoconf.c	Tue May 31 22:43:33 2011
@@ -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");

Reply via email to