svn commit: r272565 - head/tools/tools/bootparttest

Andrey V. Elsukov ae at FreeBSD.org
Sun Oct 5 11:16:17 UTC 2014


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)


More information about the svn-src-all mailing list