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:
Jim Warner 2017-11-14 00:00:00 -06:00 committed by Craig Small
parent fd77d86942
commit 2d5b7e580f

View File

@ -528,7 +528,7 @@ static void diskpartition_format(const char *partition_name)
struct diskstats_info *disk_stat;
struct diskstats_stack *stack;
struct diskstats_result *got;
const char format[] = "%21u %16llu %10u %16llu\n";
const char format[] = "%21lu %16lu %10lu %16lu\n";
int i;
if (procps_diskstats_new(&disk_stat) < 0)