libtraceevent: Fix build warning on 32-bit arches
PATCH 1/1 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 <[email protected]>
Signed-off-by Tzvetomir Stoyanov (VMware) <[email protected]>
Cc Steven Rostedt (VMware) <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
Reported-by Alan Mikhak <[email protected]>
Signed-off-by Tzvetomir Stoyanov (VMware) <[email protected]>
---
[
Backport from kernel into the libtraceevent repo.
]
src/event-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/event-parse.c +1 -1
@@ -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 ; }
Signature · 1 line
2.29.2
Steven Rostedt
AppliedQuoted 10 lines · On Thu, 11 Mar 2021 12:36:22 +0200 "Tzvetomir Stoyanov (VMware)"…
Fixed a compilation warning for casting to pointer from integer of different size on 32-bit platforms.
Reported-by Arnaldo Carvalho de Melo <[email protected]>Signed-off-by Tzvetomir Stoyanov (VMware) <[email protected]>Cc Steven Rostedt (VMware) <[email protected]>Signed-off-by Arnaldo Carvalho de Melo <[email protected]>Reported-by Alan Mikhak <[email protected]>Signed-off-by Tzvetomir Stoyanov (VMware) <[email protected]>
Quoted 5 lines
---
[
Backport from kernel into the libtraceevent repo.
]
Applied. Thanks Tzvetomir!
-- Steve