summaryrefslogtreecommitdiffstats
path: root/sys/dev/random/yarrow.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-09-21 21:44:19 +0000
committermarkm <markm@FreeBSD.org>2002-09-21 21:44:19 +0000
commitd858b4fee1b31a3d6f8b188403b74d4a124c91db (patch)
tree92b06b6d0ecbe33b26908b4b8bc27647a3a5814e /sys/dev/random/yarrow.c
parentb57c1147d22981983ef63f8b1324742d4664408c (diff)
downloadFreeBSD-src-d858b4fee1b31a3d6f8b188403b74d4a124c91db.zip
FreeBSD-src-d858b4fee1b31a3d6f8b188403b74d4a124c91db.tar.gz
Remove #ifdef'ed Giant mutex wrappers round debugging statements.
Diffstat (limited to 'sys/dev/random/yarrow.c')
-rw-r--r--sys/dev/random/yarrow.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c
index 9407892..304de5d 100644
--- a/sys/dev/random/yarrow.c
+++ b/sys/dev/random/yarrow.c
@@ -163,9 +163,7 @@ reseed(u_int fastslow)
enum esource j;
#ifdef DEBUG
- mtx_lock(&Giant);
printf("Reseed type %d\n", fastslow);
- mtx_unlock(&Giant);
#endif
/* The reseed task must not be jumped on */
@@ -241,9 +239,7 @@ reseed(u_int fastslow)
mtx_unlock(&random_reseed_mtx);
#ifdef DEBUG
- mtx_lock(&Giant);
printf("Reseed finish\n");
- mtx_unlock(&Giant);
#endif
/* Unblock the device if it was blocked due to being unseeded */
@@ -317,9 +313,7 @@ generator_gate(void)
u_char temp[KEYSIZE];
#ifdef DEBUG
- mtx_lock(&Giant);
printf("Generator gate\n");
- mtx_unlock(&Giant);
#endif
for (i = 0; i < KEYSIZE; i += sizeof(random_state.counter)) {
@@ -332,9 +326,7 @@ generator_gate(void)
memset((void *)temp, 0, KEYSIZE);
#ifdef DEBUG
- mtx_lock(&Giant);
printf("Generator gate finish\n");
- mtx_unlock(&Giant);
#endif
}
OpenPOWER on IntegriCloud