提交 68b5d04d 编写于 作者: P Peter Krempa 提交者: Cole Robinson

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 3a703b81)
上级 20ae6d72
......@@ -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.
先完成此消息的编辑!
想要评论请 注册