From owner-svn-src-projects@FreeBSD.ORG Thu Oct 10 07:39:19 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CBA23595; Thu, 10 Oct 2013 07:39:19 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B9E972687; Thu, 10 Oct 2013 07:39:19 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9A7dJq2053833; Thu, 10 Oct 2013 07:39:19 GMT (envelope-from markm@svn.freebsd.org) Received: (from markm@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9A7dJHT053832; Thu, 10 Oct 2013 07:39:19 GMT (envelope-from markm@svn.freebsd.org) Message-Id: <201310100739.r9A7dJHT053832@svn.freebsd.org> From: Mark Murray Date: Thu, 10 Oct 2013 07:39:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r256254 - projects/random_number_generator/sys/dev/random X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2013 07:39:19 -0000 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);