Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2013 07:39:19 +0000 (UTC)
From:      Mark Murray <markm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r256254 - projects/random_number_generator/sys/dev/random
Message-ID:  <201310100739.r9A7dJHT053832@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markm
Date: Thu Oct 10 07:39:19 2013
New Revision: 256254
URL: http://svnweb.freebsd.org/changeset/base/256254

Log:
  Fix a constant printf which is (int) on some architectures and (long int) on others.

Modified:
  projects/random_number_generator/sys/dev/random/random_harvestq.c

Modified: projects/random_number_generator/sys/dev/random/random_harvestq.c
==============================================================================
--- projects/random_number_generator/sys/dev/random/random_harvestq.c	Thu Oct 10 07:23:11 2013	(r256253)
+++ projects/random_number_generator/sys/dev/random/random_harvestq.c	Thu Oct 10 07:39:19 2013	(r256254)
@@ -129,7 +129,7 @@ random_harvestq_cache(void *arg __unused
 	for (entropy_file = entropy_files; *entropy_file; entropy_file++) {
 		error = randomdev_read_file(*entropy_file, data, PAGE_SIZE);
 		if (error == 0) {
-			printf("random: entropy cache '%s' provides %d bytes\n", *entropy_file, PAGE_SIZE);
+			printf("random: entropy cache '%s' provides %ld bytes\n", *entropy_file, (long)PAGE_SIZE);
 			error = randomdev_write_file(*entropy_file, zbuf, PAGE_SIZE);
 			if (error == 0) {
 				printf("random: entropy cache '%s' contents used and successfully overwritten\n", *entropy_file);



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