Source-Changes-HG archive

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

[src/trunk]: src/sys/kern #ifdef RND_VERBOSE printf -> rnd_printf_verbose



details:   https://anonhg.NetBSD.org/src/rev/95ff88bc702d
branches:  trunk
changeset: 337431:95ff88bc702d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Apr 14 13:05:33 2015 +0000

description:
#ifdef RND_VERBOSE printf -> rnd_printf_verbose

diffstat:

 sys/kern/kern_rndq.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r a793d1f34ba9 -r 95ff88bc702d sys/kern/kern_rndq.c
--- a/sys/kern/kern_rndq.c      Tue Apr 14 13:03:37 2015 +0000
+++ b/sys/kern/kern_rndq.c      Tue Apr 14 13:05:33 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_rndq.c,v 1.53 2015/04/14 12:51:30 riastradh Exp $ */
+/*     $NetBSD: kern_rndq.c,v 1.54 2015/04/14 13:05:33 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.53 2015/04/14 12:51:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.54 2015/04/14 13:05:33 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -1606,12 +1606,10 @@
                        mutex_spin_exit(&rndpool_mtx);
 
                        rnd_wakeup_readers();
+               } else {
+                       rnd_printf_verbose("rnd"
+                           ": already seeded by boot loader\n");
                }
-#ifdef RND_VERBOSE
-               else {
-                       printf("rnd: already seeded by boot loader\n");
-               }
-#endif
                break;
 
        default:



Home | Main Index | Thread Index | Old Index