Module Name: src
Committed By: pooka
Date: Thu Nov 6 01:42:01 UTC 2014
Modified Files:
src/sys/dev/pci: viornd.c
Log Message:
put the "asked for" print also behind VIORNG_DEBUG
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/pci/viornd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/viornd.c
diff -u src/sys/dev/pci/viornd.c:1.4 src/sys/dev/pci/viornd.c:1.5
--- src/sys/dev/pci/viornd.c:1.4 Thu Nov 6 01:29:25 2014
+++ src/sys/dev/pci/viornd.c Thu Nov 6 01:42:01 2014
@@ -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 @@ viornd_get(size_t bytes, void *priv)
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) {