aboutsummaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-04-08 11:34:54 +0300
committerJouni Malinen <j@w1.fi>2012-04-08 11:34:54 +0300
commit3208b5a0feab3fbd19d973551a54cfeceaa45a8a (patch)
tree4735f7b6ebc94f082465981a19e6c38f66434550 /src/crypto
parent9f98810c5d9bfd99e1b2c3fc0be4d77dfa03c410 (diff)
downloadexternal_wpa_supplicant_8_ti-3208b5a0feab3fbd19d973551a54cfeceaa45a8a.zip
external_wpa_supplicant_8_ti-3208b5a0feab3fbd19d973551a54cfeceaa45a8a.tar.gz
external_wpa_supplicant_8_ti-3208b5a0feab3fbd19d973551a54cfeceaa45a8a.tar.bz2
Make random_add_randomness() debug print less verbose
Mark the debug print excessive and print it only in case the entropy collection is used since this function can get called pretty frequently. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/random.c b/src/crypto/random.c
index 55e9391..d85c3e6 100644
--- a/src/crypto/random.c
+++ b/src/crypto/random.c
@@ -128,8 +128,6 @@ void random_add_randomness(const void *buf, size_t len)
static unsigned int count = 0;
count++;
- wpa_printf(MSG_MSGDUMP, "Add randomness: count=%u entropy=%u",
- count, entropy);
if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) {
/*
* No need to add more entropy at this point, so save CPU and
@@ -137,6 +135,8 @@ void random_add_randomness(const void *buf, size_t len)
*/
return;
}
+ wpa_printf(MSG_EXCESSIVE, "Add randomness: count=%u entropy=%u",
+ count, entropy);
os_get_time(&t);
wpa_hexdump_key(MSG_EXCESSIVE, "random pool",