Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/7dc925b5ec4b
branches:  trunk
changeset: 934530:7dc925b5ec4b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jun 13 18:36:07 2020 +0000

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

diffstat:

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

diffs (44 lines):

diff -r c8d72e66ff8f -r 7dc925b5ec4b sys/dev/cgd.c
--- a/sys/dev/cgd.c     Sat Jun 13 18:35:35 2020 +0000
+++ b/sys/dev/cgd.c     Sat Jun 13 18:36:07 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.127 2020/06/13 18:35:35 riastradh Exp $ */
+/* $NetBSD: cgd.c,v 1.128 2020/06/13 18:36:07 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.127 2020/06/13 18:35:35 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.128 2020/06/13 18:36:07 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -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