Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci put the "asked for" print also behind VIORNG_DEBUG



details:   https://anonhg.NetBSD.org/src/rev/1bb75c99a58b
branches:  trunk
changeset: 803643:1bb75c99a58b
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Nov 06 01:42:01 2014 +0000

description:
put the "asked for" print also behind VIORNG_DEBUG

diffstat:

 sys/dev/pci/viornd.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 1681953482a6 -r 1bb75c99a58b sys/dev/pci/viornd.c
--- a/sys/dev/pci/viornd.c      Thu Nov 06 01:36:57 2014 +0000
+++ b/sys/dev/pci/viornd.c      Thu Nov 06 01:42:01 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: viornd.c,v 1.4 2014/11/06 01:29:25 pooka Exp $ */
+/*     $NetBSD: viornd.c,v 1.5 2014/11/06 01:42:01 pooka Exp $ */
 /*     $OpenBSD: viornd.c,v 1.1 2014/01/21 21:14:58 sf Exp $   */
 
 /*
@@ -91,8 +91,10 @@
         struct virtqueue *vq = &sc->sc_vq;
         int slot;
 
+#if VIORND_DEBUG
        aprint_normal("%s: asked for %d bytes of entropy\n", __func__,
                      VIORND_BUFSIZE);
+#endif
        mutex_enter(&sc->sc_mutex);
 
        if (sc->sc_active) {



Home | Main Index | Thread Index | Old Index