Date: Wed, 10 Aug 2011 08:53:34 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r224754 - stable/8/usr.bin/gcore Message-ID: <201108100853.p7A8rYKN033319@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108100853.p7A8rYKN033319>