]> xenbits.xensource.com Git - libvirt.git/commit
virsh: improve the error for wrong memtune parameters
authorShanzhi Yu <shyu@redhat.com>
Tue, 14 Apr 2015 10:24:40 +0000 (18:24 +0800)
committerJán Tomko <jtomko@redhat.com>
Tue, 14 Apr 2015 11:48:29 +0000 (13:48 +0200)
commit8ff9f2457dd02627587457c2d7879180c8b872ef
treefa959ee4b36522da42a210d102a697ce22393da6
parentd375368790409d892859de4a51b629f358dbfa0d
virsh: improve the error for wrong memtune parameters

When set guest memory with a invalid parameter of --soft-limit,
it posts weird error:

$ virsh memtune r7 --hard-limit 20417224 --soft-limit 9007199254740992 \
  --swap-hard-limit 35417224
error: Unable to parse integer parameter 'NAME

Change it to

error: Unable to parse integer parameter soft-limit

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1211550
Signed-off-by: Shanzhi Yu <shyu@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c