From 3a703b8120d9f996840bd315b6f74c45a7e98aad Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 25 Apr 2016 10:38:01 +0200 Subject: [PATCH] virsh: host: Use bitmap size in bytes rather than bit count Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1329819 --- 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 80ac4bd04b..57f0c0ec07 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;