Print size_t with %zu, not %d.

This commit is contained in:
Tim J. Robbins 2004-07-15 07:30:15 +00:00
parent c5453cb4db
commit ee6b783c62

View File

@ -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);