Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config Debug print where things are selected (by user).



details:   https://anonhg.NetBSD.org/src/rev/09b5ce133d7f
branches:  trunk
changeset: 332783:09b5ce133d7f
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Thu Oct 09 06:49:53 2014 +0000

description:
Debug print where things are selected (by user).

diffstat:

 usr.bin/config/files.c |  3 ++-
 usr.bin/config/main.c  |  4 +++-
 usr.bin/config/sem.c   |  5 ++++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diffs (74 lines):

diff -r b9a0a6f44ca4 -r 09b5ce133d7f usr.bin/config/files.c
--- a/usr.bin/config/files.c    Thu Oct 09 06:45:31 2014 +0000
+++ b/usr.bin/config/files.c    Thu Oct 09 06:49:53 2014 +0000
@@ -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 @@
                        }
                }
                fi->fi_flags |= FI_SEL;
+               CFGDBG(3, "file slected `%s'", fi->fi_path);
        }
        return (err);
 }
diff -r b9a0a6f44ca4 -r 09b5ce133d7f usr.bin/config/main.c
--- a/usr.bin/config/main.c     Thu Oct 09 06:45:31 2014 +0000
+++ b/usr.bin/config/main.c     Thu Oct 09 06:49:53 2014 +0000
@@ -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 @@
        /* 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 @@
 
        /* Add to select table. */
        (void)ht_insert(selecttab, n, __UNCONST(n));
+       CFGDBG(3, "fs selected `%s'", name);
 }
 
 void
diff -r b9a0a6f44ca4 -r 09b5ce133d7f usr.bin/config/sem.c
--- a/usr.bin/config/sem.c      Thu Oct 09 06:45:31 2014 +0000
+++ b/usr.bin/config/sem.c      Thu Oct 09 06:49:53 2014 +0000
@@ -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 @@
 {
 
        (void)ht_insert(selecttab, a->a_name, __UNCONST(a->a_name));
+       CFGDBG(3, "attr selected `%s'", a->a_name);
 }
 
 /*
@@ -1778,12 +1779,14 @@
        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);



Home | Main Index | Thread Index | Old Index