mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 11:52:20 +00:00
qemu: Fix the wrong expression
Wrong use of the parentheses causes "rc" always having a boolean value, either "1" or "0", and thus we can't get the detailed error message when it fails: Before (I only have 1 node): % virsh numatune f18 --nodeset 12 error: Unable to change numa parameters error: unable to set numa tunable: Unknown error -1 After: virsh numatune f18 --nodeset 12 error: Unable to change numa parameters error: unable to set numa tunable: Invalid argument
This commit is contained in:
parent
1bf25ba249
commit
a71ec98841
@ -7470,7 +7470,7 @@ qemuDomainSetNumaParameters(virDomainPtr dom,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((rc = virCgroupSetCpusetMems(priv->cgroup, nodeset_str) != 0)) {
|
if ((rc = virCgroupSetCpusetMems(priv->cgroup, nodeset_str)) != 0) {
|
||||||
virReportSystemError(-rc, "%s",
|
virReportSystemError(-rc, "%s",
|
||||||
_("unable to set numa tunable"));
|
_("unable to set numa tunable"));
|
||||||
virBitmapFree(nodeset);
|
virBitmapFree(nodeset);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user