From: Peter Krempa Date: Mon, 25 Apr 2016 08:38:01 +0000 (+0200) Subject: virsh: host: Use bitmap size in bytes rather than bit count X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3a703b8120d9f996840bd315b6f74c45a7e98aad;p=libvirt.git virsh: host: Use bitmap size in bytes rather than bit count Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1329819 --- 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;