mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
2585a79e32
commit
4374900040
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue