Print size_t with %zu, not %d.
This commit is contained in:
parent
c5453cb4db
commit
ee6b783c62
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user