vmstat: fix compiler warnings
vmstat.c:408:10: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat] vmstat.c:644:2: warning: ISO C does not support the '%Lu' gnu_printf format [-Wformat] vmstat.c:645:2: warning: ISO C does not support the '%Lu' gnu_printf format [-Wformat] vmstat.c:646:2: warning: ISO C does not support the '%Lu' gnu_printf format [-Wformat] vmstat.c:647:2: warning: ISO C does not support the '%Lu' gnu_printf format [-Wformat] vmstat.c:648:2: warning: ISO C does not support the '%Lu' gnu_printf format [-Wformat] vmstat.c:649:2: warning: ISO C does not support the '%Lu' gnu_printf format [-Wformat] vmstat.c:650:2: warning: ISO C does not support the '%Lu' gnu_printf format [-Wformat] vmstat.c:651:2: warning: ISO C does not support the '%Lu' gnu_printf format [-Wformat] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
b3a7665780
commit
afa45f0da0
16
vmstat.c
16
vmstat.c
@ -641,14 +641,14 @@ static void sum_format(void)
|
||||
printf(_("%13lu %s total swap\n"), unitConvert(kb_swap_total), szDataUnit);
|
||||
printf(_("%13lu %s used swap\n"), unitConvert(kb_swap_used), szDataUnit);
|
||||
printf(_("%13lu %s free swap\n"), unitConvert(kb_swap_free), szDataUnit);
|
||||
printf(_("%13Lu non-nice user cpu ticks\n"), cpu_use);
|
||||
printf(_("%13Lu nice user cpu ticks\n"), cpu_nic);
|
||||
printf(_("%13Lu system cpu ticks\n"), cpu_sys);
|
||||
printf(_("%13Lu idle cpu ticks\n"), cpu_idl);
|
||||
printf(_("%13Lu IO-wait cpu ticks\n"), cpu_iow);
|
||||
printf(_("%13Lu IRQ cpu ticks\n"), cpu_xxx);
|
||||
printf(_("%13Lu softirq cpu ticks\n"), cpu_yyy);
|
||||
printf(_("%13Lu stolen cpu ticks\n"), cpu_zzz);
|
||||
printf(_("%13lld non-nice user cpu ticks\n"), cpu_use);
|
||||
printf(_("%13lld nice user cpu ticks\n"), cpu_nic);
|
||||
printf(_("%13lld system cpu ticks\n"), cpu_sys);
|
||||
printf(_("%13lld idle cpu ticks\n"), cpu_idl);
|
||||
printf(_("%13lld IO-wait cpu ticks\n"), cpu_iow);
|
||||
printf(_("%13lld IRQ cpu ticks\n"), cpu_xxx);
|
||||
printf(_("%13lld softirq cpu ticks\n"), cpu_yyy);
|
||||
printf(_("%13lld stolen cpu ticks\n"), cpu_zzz);
|
||||
printf(_("%13lu pages paged in\n"), pgpgin);
|
||||
printf(_("%13lu pages paged out\n"), pgpgout);
|
||||
printf(_("%13lu pages swapped in\n"), pswpin);
|
||||
|
Loading…
Reference in New Issue
Block a user