Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools lib traceevent: Fix format in plugin_kvm

The format field argument passed to the format
in pevent_print_num_field() will be of type long long. That means that
%ll must be used instead of %l.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Reported-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20140613103127.1a9bdee7@gandalf.local.home
Signed-off-by: Jiri Olsa <jolsa@kernel.org>

authored by

Steven Rostedt and committed by
Jiri Olsa
a21e3a34 7f6e3635

+1 -1
+1 -1
tools/lib/traceevent/plugin_kvm.c
··· 344 344 static int kvm_nested_vmexit_handler(struct trace_seq *s, struct pevent_record *record, 345 345 struct event_format *event, void *context) 346 346 { 347 - pevent_print_num_field(s, "rip %lx ", event, "rip", record, 1); 347 + pevent_print_num_field(s, "rip %llx ", event, "rip", record, 1); 348 348 349 349 return kvm_nested_vmexit_inject_handler(s, record, event, context); 350 350 }