summaryrefslogtreecommitdiffstats
path: root/sys/dev/random
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2015-10-05 10:45:52 +0000
committermarkm <markm@FreeBSD.org>2015-10-05 10:45:52 +0000
commit4a5ab30b33be29a8d450a9a4e41d68471eed5ad8 (patch)
tree9068acc67c38c0513b02552d2f80c31b8a91f776 /sys/dev/random
parent1342814ae817bf3c736797c4a4576759ef7c2dff (diff)
downloadFreeBSD-src-4a5ab30b33be29a8d450a9a4e41d68471eed5ad8.zip
FreeBSD-src-4a5ab30b33be29a8d450a9a4e41d68471eed5ad8.tar.gz
Fix printf-like formats for KASSERT.
Submitted by: jenkins Approved by: so (/dev/random blanket)
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/random_harvestq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/random_harvestq.c b/sys/dev/random/random_harvestq.c
index 9993bbe..c56d1ec 100644
--- a/sys/dev/random/random_harvestq.c
+++ b/sys/dev/random/random_harvestq.c
@@ -211,7 +211,7 @@ random_sources_feed(void)
LIST_FOREACH(rrs, &source_list, rrs_entries) {
for (i = 0; i < p_random_alg_context->ra_poolcount*(local_read_rate + 1); i++) {
n = rrs->rrs_source->rs_read(entropy, sizeof(entropy));
- KASSERT((n <= sizeof(entropy)), ("%s: rs_read returned too much data (%d > %d) in %s", __func__, n, sizeof(entropy)));
+ KASSERT((n <= sizeof(entropy)), ("%s: rs_read returned too much data (%u > %zu)", __func__, n, sizeof(entropy)));
/* It would appear that in some circumstances (e.g. virtualisation),
* the underlying hardware entropy source might not always return
* random numbers. Accept this but make a noise. If too much happens,
OpenPOWER on IntegriCloud