Message ID | 20210311103622.1962839-1-tz.stoyanov@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 54fcf9e26a131dd235717581c27ecc672207cbf0 |
Headers | show |
Series | libtraceevent: Fix build warning on 32-bit arches | expand |
On Thu, 11 Mar 2021 12:36:22 +0200 "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com> wrote: > 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> > Reported-by: Alan Mikhak <amikhak@wirelessfabric.com> > Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> > --- > [ > Backport from kernel into the libtraceevent repo. > ] > Applied. Thanks Tzvetomir! -- Steve
diff --git a/src/event-parse.c b/src/event-parse.c index a249b07..e4e2e36 100644 --- a/src/event-parse.c +++ b/src/event-parse.c @@ -5240,7 +5240,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; }