summaryrefslogtreecommitdiff
path: root/usr.bin/config
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-11-18 18:39:16 +0000
committerchristos <christos@NetBSD.org>2017-11-18 18:39:16 +0000
commit136fefb8578fdd7d06b2e7b0d582a46fa14b27f2 (patch)
tree14efd60326d29bad13aedb68f877cf88ab13910f /usr.bin/config
parent33b9b810ba179bb46fd2ea58502405119eaa9542 (diff)
add more debugging, no functional change.
Diffstat (limited to 'usr.bin/config')
-rw-r--r--usr.bin/config/main.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/usr.bin/config/main.c b/usr.bin/config/main.c
index 5919a62023e..35fd8e3ab6d 100644
--- a/usr.bin/config/main.c
+++ b/usr.bin/config/main.c
@@ -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 @@ do_kill_orphans(struct devbase *d, struct attr *at, struct devbase *parent,
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 @@ do_kill_orphans(struct devbase *d, struct attr *at, struct devbase *parent,
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 @@ do_kill_orphans(struct devbase *d, struct attr *at, struct devbase *parent,
* have to continue looping.
*/
active = DEVI_IGNORED;
- else
+ CFGDBG(5, "`%s' at '%s' ignored", d->d_name,
+ parent ? parent->d_name : "(root)");
+
+ } else
return;
}
}