]> git.baikalelectronics.ru Git - kernel.git/commit
tools/kvm_stat: suppress usage information on command line errors
authorStefan Raspl <stefan.raspl@de.ibm.com>
Mon, 11 Dec 2017 11:25:26 +0000 (12:25 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Dec 2017 08:25:46 +0000 (09:25 +0100)
commitc67a6fe46fcf597ecd8b34ab47bc678f4df2609e
treedf755bd5baf19f41c256a6ffb817c8531fbef559
parent6629477ffbafa91ca3d08ac1c622e4798ab44666
tools/kvm_stat: suppress usage information on command line errors

Errors while parsing the '-g' command line argument result in display of
usage information prior to the error message. This is a bit confusing,
as the command line is syntactically correct.
To reproduce, run 'kvm_stat -g' and specify a non-existing or inactive
guest.

Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/kvm/kvm_stat/kvm_stat