Skip to content

Commit

Permalink
libtraceevent: Fix build warning on 32-bit arches
Browse files Browse the repository at this point in the history
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]>
Cc: [email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
tzstoyanov authored and acmel committed Sep 3, 2020
1 parent e62458e commit 10a6f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lib/traceevent/event-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 10a6f5c

Please sign in to comment.