mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
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>
This commit is contained in:
parent
1a5e185294
commit
61f381bb7e
1 changed files with 1 additions and 1 deletions
|
@ -1195,7 +1195,7 @@ class Tui(object):
|
||||||
'This might limit the shown data to the trace '
|
'This might limit the shown data to the trace '
|
||||||
'statistics.')
|
'statistics.')
|
||||||
self.screen.addstr(5, 0, msg)
|
self.screen.addstr(5, 0, msg)
|
||||||
self.print_all_gnames()
|
self.print_all_gnames(7)
|
||||||
curses.echo()
|
curses.echo()
|
||||||
self.screen.addstr(3, 0, "Guest [ENTER or guest]: ")
|
self.screen.addstr(3, 0, "Guest [ENTER or guest]: ")
|
||||||
gname = self.screen.getstr()
|
gname = self.screen.getstr()
|
||||||
|
|
Loading…
Reference in a new issue