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

This commit is contained in:
Mark Murray 2013-10-10 07:39:19 +00:00
parent 72acff0f07
commit 663c239342
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/random_number_generator/; revision=256254

View File

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