diff options
author | Mark Murray <markm@FreeBSD.org> | 2015-10-05 10:45:52 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2015-10-05 10:45:52 +0000 |
commit | dcabe03158e4d2592516f576130197087ac11618 (patch) | |
tree | 9068acc67c38c0513b02552d2f80c31b8a91f776 /sys/dev | |
parent | 0a9565c86ec506163c83878284ffccc9e1b6d973 (diff) | |
download | src-dcabe03158e4d2592516f576130197087ac11618.tar.gz src-dcabe03158e4d2592516f576130197087ac11618.zip |
Fix printf-like formats for KASSERT.
Submitted by: jenkins
Approved by: so (/dev/random blanket)
Notes
Notes:
svn path=/head/; revision=288780
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/random/random_harvestq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/random_harvestq.c b/sys/dev/random/random_harvestq.c index 9993bbebda73..c56d1ec319d6 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, |