From ee6b783c62092ed9202a9b796fe7e1073d3c6f4e Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Thu, 15 Jul 2004 07:30:15 +0000 Subject: [PATCH] Print size_t with %zu, not %d. --- usr.bin/killall/killall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c index 24e3f3166282..3cb5d07deb3f 100644 --- a/usr.bin/killall/killall.c +++ b/usr.bin/killall/killall.c @@ -303,7 +303,7 @@ main(int ac, char **av) if (st == -1) err(1, "could not sysctl(KERN_PROC)"); if (size % sizeof(struct kinfo_proc) != 0) { - fprintf(stderr, "proc size mismatch (%d total, %d chunks)\n", + fprintf(stderr, "proc size mismatch (%zu total, %zu chunks)\n", size, sizeof(struct kinfo_proc)); fprintf(stderr, "userland out of sync with kernel, recompile libkvm etc\n"); exit(1);