mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-07 12:17:18 +00:00
virsh: host: Use bitmap size in bytes rather than bit count
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1329819 (cherry picked from commit 3a703b8120d9f996840bd315b6f74c45a7e98aad)
This commit is contained in:
parent
20ae6d725b
commit
68b5d04ded
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user