vmstat: eliminate some printf format/argument warnings
In the commit referenced below, we lost several format
string qualifiers which produced several new warnings.
Reference(s):
commit ccbd818cb4
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
fd77d86942
commit
2d5b7e580f
2
vmstat.c
2
vmstat.c
@ -528,7 +528,7 @@ static void diskpartition_format(const char *partition_name)
|
|||||||
struct diskstats_info *disk_stat;
|
struct diskstats_info *disk_stat;
|
||||||
struct diskstats_stack *stack;
|
struct diskstats_stack *stack;
|
||||||
struct diskstats_result *got;
|
struct diskstats_result *got;
|
||||||
const char format[] = "%21u %16llu %10u %16llu\n";
|
const char format[] = "%21lu %16lu %10lu %16lu\n";
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (procps_diskstats_new(&disk_stat) < 0)
|
if (procps_diskstats_new(&disk_stat) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user