From: Stefan Raspl Date: Sun, 25 Jun 2017 19:34:14 +0000 (+0200) Subject: tools/kvm_stat: fix error on interactive command 'g' X-Git-Tag: v4.13-rc1~131^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61f381bb7e1a8e9250aa32b3963a7a5c4b92cbf5;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Paolo Bonzini --- diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat index 2cf5176bbeee8..39476e55f557f 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()