Message ID | 20200722011754.570002872@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | e8f331aa91a2cfe53fb8585bc45baac66fb54096 |
Headers | show |
Series | tools lib traceevent: Synchronizing trace-cmd with tools | expand |
diff --git a/tools/lib/traceevent/plugins/plugin_kvm.c b/tools/lib/traceevent/plugins/plugin_kvm.c index de76a1e79d9e..51ceeb9147eb 100644 --- a/tools/lib/traceevent/plugins/plugin_kvm.c +++ b/tools/lib/traceevent/plugins/plugin_kvm.c @@ -245,7 +245,7 @@ static const char *find_exit_reason(unsigned isa, int val) } if (!strings) return "UNKNOWN-ISA"; - for (i = 0; strings[i].val >= 0; i++) + for (i = 0; strings[i].str; i++) if (strings[i].val == val) break;