summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorStefan Raspl <raspl@linux.vnet.ibm.com>2017-06-25 21:34:14 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2017-06-27 16:41:55 +0200
commit61f381bb7e1a8e9250aa32b3963a7a5c4b92cbf5 (patch)
treee9fed932b5e7f6c22c92586df2fe9f7211d6085a /tools
parent1a5e1852941d0d8ae98a4b5c769ec998e3708158 (diff)
downloadlinux-61f381bb7e1a8e9250aa32b3963a7a5c4b92cbf5.tar.gz
linux-61f381bb7e1a8e9250aa32b3963a7a5c4b92cbf5.tar.bz2
linux-61f381bb7e1a8e9250aa32b3963a7a5c4b92cbf5.zip
tools/kvm_stat: fix error on interactive command 'g'
Fix an instance where print_all_gnames() is called without the mandatory argument, resulting in a stack trace. To reproduce, simply press 'g' in interactive mode. Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kvm/kvm_stat/kvm_stat2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat
index 2cf5176bbeee..39476e55f557 100755
--- a/tools/kvm/kvm_stat/kvm_stat
+++ b/tools/kvm/kvm_stat/kvm_stat
@@ -1195,7 +1195,7 @@ class Tui(object):
'This might limit the shown data to the trace '
'statistics.')
self.screen.addstr(5, 0, msg)
- self.print_all_gnames()
+ self.print_all_gnames(7)
curses.echo()
self.screen.addstr(3, 0, "Guest [ENTER or guest]: ")
gname = self.screen.getstr()