tools: Fix printf format

We're passing size_t but using format for unsigned long.
Introduced in latest vshTable rework patches.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2018-09-24 10:45:44 +02:00
parent 2585a79e32
commit 4374900040
2 changed files with 2 additions and 2 deletions

View File

@ -6949,7 +6949,7 @@ virshVcpuPinQuery(vshControl *ctl,
if (!(pinInfo = virBitmapDataFormat(cpumap, cpumaplen)))
goto cleanup;
if (virAsprintf(&vcpuStr, "%lu", i) < 0)
if (virAsprintf(&vcpuStr, "%zu", i) < 0)
goto cleanup;
if (vshTableRowAppend(table, vcpuStr, pinInfo, NULL) < 0)

View File

@ -398,7 +398,7 @@ cmdSrvList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
for (i = 0; i < nsrvs; i++) {
VIR_AUTOFREE(char *) idStr = NULL;
if (virAsprintf(&idStr, "%lu", i) < 0)
if (virAsprintf(&idStr, "%zu", i) < 0)
goto cleanup;
if (vshTableRowAppend(table,