]> granicus.if.org Git - procps-ng/commitdiff
vmstat: fix compiler warnings
authorSami Kerola <kerolasa@iki.fi>
Sat, 25 Feb 2012 20:40:55 +0000 (21:40 +0100)
committerCraig Small <csmall@enc.com.au>
Sat, 3 Mar 2012 07:28:52 +0000 (18:28 +1100)
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>
vmstat.c

index 1f310317571fbb4254ef42e70b87c8f72e8144de..a28395a03cb07ba35f07c538526f06f20ba0f060 100644 (file)
--- a/vmstat.c
+++ b/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);