]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix the wrong expression
authorOsier Yang <jyang@redhat.com>
Mon, 22 Apr 2013 11:40:19 +0000 (19:40 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 22 Apr 2013 10:56:20 +0000 (18:56 +0800)
commita71ec98841c825dfb7e9b648dd85f5140f29d090
tree0729534623ab728740e0a65cd7ec1e0c72a59b9a
parent1bf25ba249578f185f5c2b3e06c0021e07c15db6
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
src/qemu/qemu_driver.c