From afa45f0da02566b065fcb92709ff86e43783627e Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 25 Feb 2012 21:40:55 +0100 Subject: [PATCH] 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 --- vmstat.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vmstat.c b/vmstat.c index 1f310317..a28395a0 100644 --- 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);