diff options
author | delphij <delphij@FreeBSD.org> | 2011-07-11 05:46:15 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2011-07-11 05:46:15 +0000 |
commit | 4a62faae22e6fc441f8c47779f12d2e63b3b8da5 (patch) | |
tree | 9879f2d19f8f723f25ca481ff472b9879c372abd /usr.bin/gcore | |
parent | 98820bb8870d3ea169bfd8c80589fd8286c111ce (diff) | |
download | FreeBSD-src-4a62faae22e6fc441f8c47779f12d2e63b3b8da5.zip FreeBSD-src-4a62faae22e6fc441f8c47779f12d2e63b3b8da5.tar.gz |
Match size_t and ssize_t by using %zu and %zd instead of %d.
MFC after: 1 month
Diffstat (limited to 'usr.bin/gcore')
-rw-r--r-- | usr.bin/gcore/elfcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c index 9da22d7..8228c57 100644 --- a/usr.bin/gcore/elfcore.c +++ b/usr.bin/gcore/elfcore.c @@ -183,7 +183,7 @@ elf_coredump(int efd __unused, int fd, pid_t pid) 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) |