Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config add more debugging, no functional change.



details:   https://anonhg.NetBSD.org/src/rev/ff0d0049667d
branches:  trunk
changeset: 357618:ff0d0049667d
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 18 18:39:16 2017 +0000

description:
add more debugging, no functional change.

diffstat:

 usr.bin/config/main.c |  17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r f762c72e36d0 -r ff0d0049667d usr.bin/config/main.c
--- a/usr.bin/config/main.c     Sat Nov 18 17:00:00 2017 +0000
+++ b/usr.bin/config/main.c     Sat Nov 18 18:39:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.93 2017/11/18 01:11:05 christos Exp $       */
+/*     $NetBSD: main.c,v 1.94 2017/11/18 18:39:16 christos Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: main.c,v 1.93 2017/11/18 01:11:05 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.94 2017/11/18 18:39:16 christos Exp $");
 
 #ifndef MAKE_BOOTSTRAP
 #include <sys/cdefs.h>
@@ -1957,6 +1957,12 @@
                                        j->i_active = active = state;
                                        if (p != NULL)
                                                p->p_active = state;
+                                       if (state == DEVI_IGNORED) {
+                                               CFGDBG(5,
+                                                   "`%s' at '%s' ignored",
+                                                   d->d_name, parent ?
+                                                   parent->d_name : "(root)");
+                                       }
                                }
                        }
                }
@@ -1969,7 +1975,7 @@
                        struct cdd_params cdd = { d, at, parent };
                        /* Look for a matching dead devi */
                        if (ht_enumerate(deaddevitab, check_dead_devi, &cdd) &&
-                           d != parent)
+                           d != parent) {
                                /*
                                 * That device had its instances removed.
                                 * Continue the loop marking descendants
@@ -1981,7 +1987,10 @@
                                 * have to continue looping.
                                 */
                                active = DEVI_IGNORED;
-                       else
+                               CFGDBG(5, "`%s' at '%s' ignored", d->d_name,
+                                   parent ? parent->d_name : "(root)");
+
+                       } else
                                return;
                }
        }



Home | Main Index | Thread Index | Old Index