Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/dev Print cgd self-test noise only with verbose boot.



details:   https://anonhg.NetBSD.org/src-all/rev/bfa2da8004fb
branches:  trunk
changeset: 934489:bfa2da8004fb
user:      Taylor R Campbell <riastradh%NetBSD.org@localhost>
date:      Fri May 29 19:50:57 2020 +0000

description:
Print cgd self-test noise only with verbose boot.

diffstat:

 sys/dev/cgd.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 4097210e6df2 -r bfa2da8004fb sys/dev/cgd.c
--- a/sys/dev/cgd.c     Fri May 29 19:47:25 2020 +0000
+++ b/sys/dev/cgd.c     Fri May 29 19:50:57 2020 +0000
@@ -1602,15 +1602,13 @@
        struct cgd_softc sc;
        void *buf;
 
-       printf("running cgd selftest ");
-
        for (size_t i = 0; i < __arraycount(selftests); i++) {
                const char *alg = selftests[i].alg;
                const uint8_t *key = selftests[i].key;
                int keylen = selftests[i].keylen;
                int txtlen = selftests[i].txtlen;
 
-               printf("%s-%d ", alg, keylen);
+               aprint_verbose("cgd: self-test %s-%d\n", alg, keylen);
 
                memset(&sc, 0, sizeof(sc));
 
@@ -1648,7 +1646,7 @@
                sc.sc_cfuncs->cf_destroy(sc.sc_cdata.cf_priv);
        }
 
-       printf("done\n");
+       aprint_verbose("cgd: self-tests passed\n");
 }
 
 MODULE(MODULE_CLASS_DRIVER, cgd, "blowfish,des,dk_subr,bufq_fcfs");



Home | Main Index | Thread Index | Old Index