svn commit: r224754 - stable/8/usr.bin/gcore

Xin LI delphij at FreeBSD.org
Wed Aug 10 08:53:34 UTC 2011


Author: delphij
Date: Wed Aug 10 08:53:33 2011
New Revision: 224754
URL: http://svn.freebsd.org/changeset/base/224754

Log:
  MFC r223924:
  
  Match size_t and ssize_t by using %zu and %zd instead of %d.

Modified:
  stable/8/usr.bin/gcore/elfcore.c
Directory Properties:
  stable/8/usr.bin/gcore/   (props changed)

Modified: stable/8/usr.bin/gcore/elfcore.c
==============================================================================
--- stable/8/usr.bin/gcore/elfcore.c	Wed Aug 10 08:52:27 2011	(r224753)
+++ stable/8/usr.bin/gcore/elfcore.c	Wed Aug 10 08:53:33 2011	(r224754)
@@ -183,7 +183,7 @@ elf_coredump(int efd __unused, int fd, p
 			ptrace(PT_IO, pid, (caddr_t)&iorequest, 0);
 			ngot = iorequest.piod_len;
 			if ((size_t)ngot < nwant)
-				errx(1, "short read wanted %d, got %d",
+				errx(1, "short read wanted %zu, got %zd",
 				    nwant, ngot);
 			ngot = write(fd, buf, nwant);
 			if (ngot == -1)


More information about the svn-src-stable-8 mailing list