Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Oct 2014 11:16:16 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272565 - head/tools/tools/bootparttest
Message-ID:  <201410051116.s95BGHlY029237@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Sun Oct  5 11:16:16 2014
New Revision: 272565
URL: https://svnweb.freebsd.org/changeset/base/272565

Log:
  Fix format string warnings.

Modified:
  head/tools/tools/bootparttest/bootparttest.c

Modified: head/tools/tools/bootparttest/bootparttest.c
==============================================================================
--- head/tools/tools/bootparttest/bootparttest.c	Sun Oct  5 11:06:22 2014	(r272564)
+++ head/tools/tools/bootparttest/bootparttest.c	Sun Oct  5 11:16:16 2014	(r272565)
@@ -78,8 +78,8 @@ disk_strategy(void *devdata, int rw, dad
 		return (-1);
 	if (rsize)
 		*rsize = 0;
-	printf("read %lu bytes from the block %ld [+%ld]\n", size,
-	    blk, dev->d_offset);
+	printf("read %zu bytes from the block %lld [+%lld]\n", size,
+	    (long long)blk, (long long)dev->d_offset);
 	ret = pread(disk.fd, buf, size,
 	    (blk + dev->d_offset) * disk.sectorsize);
 	if (ret != size)



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