Source-Changes-HG archive

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

[src/trunk]: src/sys/kern entropy: Reduce `no seed from bootloader' message t...



details:   https://anonhg.NetBSD.org/src/rev/a3ec6fc8b9f0
branches:  trunk
changeset: 958827:a3ec6fc8b9f0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Jan 21 17:33:55 2021 +0000

description:
entropy: Reduce `no seed from bootloader' message to debug level.

This does not necessarily indicate a problem -- only x86 and arm pass
a seed from the bootloader anyway -- so it makes for an always-on
warning on some platforms, including all rump kernels, which is not
helpful.

diffstat:

 sys/kern/kern_entropy.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 97d6a82003c2 -r a3ec6fc8b9f0 sys/kern/kern_entropy.c
--- a/sys/kern/kern_entropy.c   Thu Jan 21 17:05:50 2021 +0000
+++ b/sys/kern/kern_entropy.c   Thu Jan 21 17:33:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_entropy.c,v 1.28 2021/01/16 02:21:26 riastradh Exp $      */
+/*     $NetBSD: kern_entropy.c,v 1.29 2021/01/21 17:33:55 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.28 2021/01/16 02:21:26 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.29 2021/01/21 17:33:55 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -378,7 +378,7 @@
 
        /* Note if the bootloader didn't provide a seed.  */
        if (!E->seeded)
-               printf("entropy: no seed from bootloader\n");
+               aprint_debug("entropy: no seed from bootloader\n");
 
        /* Allocate the per-CPU records for all early entropy sources.  */
        LIST_FOREACH(rs, &E->sources, list)



Home | Main Index | Thread Index | Old Index