Source-Changes-HG archive

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

[src/trunk]: src/sys/kern In the diagnostic check in config_detach, inform th...



details:   https://anonhg.NetBSD.org/src/rev/d29dfbd885d8
branches:  trunk
changeset: 481271:d29dfbd885d8
user:      enami <enami%NetBSD.org@localhost>
date:      Tue Jan 25 13:23:26 2000 +0000

description:
In the diagnostic check in config_detach, inform the name of parent and
its child who shouldn't be exist.

diffstat:

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

diffs (25 lines):

diff -r 5a5b5b542670 -r d29dfbd885d8 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Tue Jan 25 13:06:51 2000 +0000
+++ b/sys/kern/subr_autoconf.c  Tue Jan 25 13:23:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_autoconf.c,v 1.47 2000/01/24 18:03:19 thorpej Exp $       */
+/*     $NetBSD: subr_autoconf.c,v 1.48 2000/01/25 13:23:26 enami Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -488,9 +488,12 @@
         * the list.)
         */
        for (d = TAILQ_NEXT(dev, dv_list); d != NULL;
-            d = TAILQ_NEXT(d, dv_list)) {
-               if (d->dv_parent == dev)
-                       panic("config_detach: detached device has children");
+           d = TAILQ_NEXT(d, dv_list)) {
+               if (d->dv_parent == dev) {
+                       printf("config_detach: detached device %s"
+                           " has children %s\n", dev->dv_xname, d->dv_xname);
+                       panic("config_detach");
+               }
        }
 #endif
 



Home | Main Index | Thread Index | Old Index