svn commit: r256254 - projects/random_number_generator/sys/dev/random

Mark Murray markm at FreeBSD.org
Thu Oct 10 07:39:19 UTC 2013


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);


More information about the svn-src-projects mailing list