mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-04 07:53:50 +00:00
virsh: host: Use bitmap size in bytes rather than bit count
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1329819
This commit is contained in:
parent
72c313bce9
commit
3a703b8120
@ -699,7 +699,7 @@ cmdNodeCpuMap(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
|
|||||||
|
|
||||||
vshPrint(ctl, "%-15s ", _("CPU map:"));
|
vshPrint(ctl, "%-15s ", _("CPU map:"));
|
||||||
if (pretty) {
|
if (pretty) {
|
||||||
char *str = virBitmapDataToString(cpumap, cpunum);
|
char *str = virBitmapDataToString(cpumap, VIR_CPU_MAPLEN(cpunum));
|
||||||
|
|
||||||
if (!str)
|
if (!str)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
Reference in New Issue
Block a user