svn commit: r223924 - head/usr.bin/gcore
Xin LI
delphij at FreeBSD.org
Mon Jul 11 05:46:16 UTC 2011
Author: delphij
Date: Mon Jul 11 05:46:15 2011
New Revision: 223924
URL: http://svn.freebsd.org/changeset/base/223924
Log:
Match size_t and ssize_t by using %zu and %zd instead of %d.
MFC after: 1 month
Modified:
head/usr.bin/gcore/elfcore.c
Modified: head/usr.bin/gcore/elfcore.c
==============================================================================
--- head/usr.bin/gcore/elfcore.c Mon Jul 11 05:40:46 2011 (r223923)
+++ head/usr.bin/gcore/elfcore.c Mon Jul 11 05:46:15 2011 (r223924)
@@ -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-head
mailing list