Module Name: src
Committed By: uebayasi
Date: Thu Oct 9 06:49:53 UTC 2014
Modified Files:
src/usr.bin/config: files.c main.c sem.c
Log Message:
Debug print where things are selected (by user).
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/config/files.c
cvs rdiff -u -r1.55 -r1.56 src/usr.bin/config/main.c
cvs rdiff -u -r1.43 -r1.44 src/usr.bin/config/sem.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/config/files.c
diff -u src/usr.bin/config/files.c:1.12 src/usr.bin/config/files.c:1.13
--- src/usr.bin/config/files.c:1.12 Wed May 21 05:25:34 2014
+++ src/usr.bin/config/files.c Thu Oct 9 06:49:53 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: files.c,v 1.12 2014/05/21 05:25:34 dholland Exp $ */
+/* $NetBSD: files.c,v 1.13 2014/10/09 06:49:53 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -297,6 +297,7 @@ fixfiles(void)
}
}
fi->fi_flags |= FI_SEL;
+ CFGDBG(3, "file slected `%s'", fi->fi_path);
}
return (err);
}
Index: src/usr.bin/config/main.c
diff -u src/usr.bin/config/main.c:1.55 src/usr.bin/config/main.c:1.56
--- src/usr.bin/config/main.c:1.55 Thu Oct 9 06:45:31 2014
+++ src/usr.bin/config/main.c Thu Oct 9 06:49:53 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.55 2014/10/09 06:45:31 uebayasi Exp $ */
+/* $NetBSD: main.c,v 1.56 2014/10/09 06:49:53 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -956,6 +956,7 @@ addoption(const char *name, const char *
/* make lowercase, then add to select table */
n = strtolower(name);
(void)ht_insert(selecttab, n, (void *)__UNCONST(n));
+ CFGDBG(3, "option selected `%s'", n);
}
void
@@ -995,6 +996,7 @@ addfsoption(const char *name)
/* Add to select table. */
(void)ht_insert(selecttab, n, __UNCONST(n));
+ CFGDBG(3, "fs selected `%s'", name);
}
void
Index: src/usr.bin/config/sem.c
diff -u src/usr.bin/config/sem.c:1.43 src/usr.bin/config/sem.c:1.44
--- src/usr.bin/config/sem.c:1.43 Thu May 29 07:47:45 2014
+++ src/usr.bin/config/sem.c Thu Oct 9 06:49:53 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: sem.c,v 1.43 2014/05/29 07:47:45 mrg Exp $ */
+/* $NetBSD: sem.c,v 1.44 2014/10/09 06:49:53 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -1765,6 +1765,7 @@ selectattr(struct attr *a)
{
(void)ht_insert(selecttab, a->a_name, __UNCONST(a->a_name));
+ CFGDBG(3, "attr selected `%s'", a->a_name);
}
/*
@@ -1778,12 +1779,14 @@ selectbase(struct devbase *d, struct dev
struct attrlist *al;
(void)ht_insert(selecttab, d->d_name, __UNCONST(d->d_name));
+ CFGDBG(3, "devbase selected `%s'", d->d_name);
for (al = d->d_attrs; al != NULL; al = al->al_next) {
a = al->al_this;
expandattr(a, selectattr);
}
if (da != NULL) {
(void)ht_insert(selecttab, da->d_name, __UNCONST(da->d_name));
+ CFGDBG(3, "devattr selected `%s'", da->d_name);
for (al = da->d_attrs; al != NULL; al = al->al_next) {
a = al->al_this;
expandattr(a, selectattr);