提交 3a703b81 编写于 作者: P Peter Krempa

virsh: host: Use bitmap size in bytes rather than bit count

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1329819
上级 72c313bc
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册