summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>2020-09-02 12:31:21 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-09-03 20:45:15 +0200
commit10a6f5c3b3ec03c7427b055b1f6081e752762d2e (patch)
tree2944f67973ee4b39a67ca08baa035a006129fd9c /tools
parentperf jevents: Fix suspicious code in fixregex() (diff)
downloadlinux-10a6f5c3b3ec03c7427b055b1f6081e752762d2e.tar.xz
linux-10a6f5c3b3ec03c7427b055b1f6081e752762d2e.zip
libtraceevent: Fix build warning on 32-bit arches
Fixed a compilation warning for casting to pointer from integer of different size on 32-bit platforms. Reported-by: Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Cc: Steven Rostedt (VMware) <rostedt@goodmis.org> Cc: linux-trace-devel@vger.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/traceevent/event-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 3ba566de821c..5acc18b32606 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -5259,7 +5259,7 @@ static int print_arg_pointer(struct trace_seq *s, const char *format, int plen,
default:
ret = 0;
val = eval_num_arg(data, size, event, arg);
- trace_seq_printf(s, "%p", (void *)val);
+ trace_seq_printf(s, "%p", (void *)(intptr_t)val);
break;
}