From eebec807605a26048d2b6bdf6020da3d82d3e40a Mon Sep 17 00:00:00 2001 From: Seeteena thoufeek Date: Sun, 15 Jan 2017 22:32:02 -0800 Subject: [PATCH] virsh nodecpumap --pretty shows wrong result on machine --- tools/virsh-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virsh-host.c b/tools/virsh-host.c index 80ac4bd..57f0c0e 100644 --- a/tools/virsh-host.c +++ b/tools/virsh-host.c @@ -699,7 +699,7 @@ cmdNodeCpuMap(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) vshPrint(ctl, "%-15s ", _("CPU map:")); if (pretty) { - char *str = virBitmapDataToString(cpumap, cpunum); + char *str = virBitmapDataToString(cpumap, VIR_CPU_MAPLEN(cpunum)); if (!str) goto cleanup; -- 2.7.4