Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Oct 2015 10:45:52 +0000 (UTC)
From:      Mark Murray <markm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288780 - head/sys/dev/random
Message-ID:  <201510051045.t95Ajq1r073057@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markm
Date: Mon Oct  5 10:45:52 2015
New Revision: 288780
URL: https://svnweb.freebsd.org/changeset/base/288780

Log:
  Fix printf-like formats for KASSERT.
  
  Submitted by:	jenkins
  Approved by:	so (/dev/random blanket)

Modified:
  head/sys/dev/random/random_harvestq.c

Modified: head/sys/dev/random/random_harvestq.c
==============================================================================
--- head/sys/dev/random/random_harvestq.c	Mon Oct  5 10:45:33 2015	(r288779)
+++ head/sys/dev/random/random_harvestq.c	Mon Oct  5 10:45:52 2015	(r288780)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510051045.t95Ajq1r073057>