fix printf format warnings

pgrep.c: In function 'main':
pgrep.c:793:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat]

vmstat.c: In function 'diskpartition_format':
vmstat.c:382:9: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat]
vmstat.c:408:10: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat]

w.c: In function 'main':
w.c:394:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2012-01-24 12:56:29 -05:00
committed by Sami Kerola
parent fc3bf171ff
commit 0da6537c5f
3 changed files with 3 additions and 3 deletions

View File

@@ -779,7 +779,7 @@ int main (int argc, char **argv)
if (errno==ESRCH)
// gone now, which is OK
continue;
xwarn(_("killing pid %ld failed"));
xwarn(_("killing pid %ld failed"), procs[i].num);
}
} else {
if (opt_count) {