From 663c239342f84ccdbb8f2f4279b8cbbefb7e6995 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Thu, 10 Oct 2013 07:39:19 +0000 Subject: [PATCH] Fix a constant printf which is (int) on some architectures and (long int) on others. --- sys/dev/random/random_harvestq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/random/random_harvestq.c b/sys/dev/random/random_harvestq.c index 471a26611909..b7b8381c8eb5 100644 --- a/sys/dev/random/random_harvestq.c +++ b/sys/dev/random/random_harvestq.c @@ -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);