summaryrefslogtreecommitdiff
path: root/tools/lib/traceevent/plugin_kvm.c
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2014-06-13 18:31:27 +0400
committerJiri Olsa <jolsa@kernel.org>2014-06-19 20:18:33 +0400
commita21e3a34bef9e9c177be61111ced23e71e25fd8a (patch)
tree74659c2fedc4e230be4c35b7ed1f4f091b5459b5 /tools/lib/traceevent/plugin_kvm.c
parent7f6e3635db39fb2400dc515192125e7b73258000 (diff)
downloadlinux-a21e3a34bef9e9c177be61111ced23e71e25fd8a.tar.xz
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>
Diffstat (limited to 'tools/lib/traceevent/plugin_kvm.c')
-rw-r--r--tools/lib/traceevent/plugin_kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/traceevent/plugin_kvm.c b/tools/lib/traceevent/plugin_kvm.c
index 0575e59c65f0..88fe83dff7cd 100644
--- a/tools/lib/traceevent/plugin_kvm.c
+++ b/tools/lib/traceevent/plugin_kvm.c
@@ -344,7 +344,7 @@ static int kvm_nested_vmexit_inject_handler(struct trace_seq *s, struct pevent_r
static int kvm_nested_vmexit_handler(struct trace_seq *s, struct pevent_record *record,
struct event_format *event, void *context)
{
- pevent_print_num_field(s, "rip %lx ", event, "rip", record, 1);
+ pevent_print_num_field(s, "rip %llx ", event, "rip", record, 1);
return kvm_nested_vmexit_inject_handler(s, record, event, context);
}