From d1d6559b080055cafe2ef5b83678014a5b5a28be Mon Sep 17 00:00:00 2001 From: Xin LI Date: Mon, 11 Jul 2011 05:46:15 +0000 Subject: [PATCH] Match size_t and ssize_t by using %zu and %zd instead of %d. MFC after: 1 month --- usr.bin/gcore/elfcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c index 9da22d7cd8fd..8228c57c6b61 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)