aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorZheng Yejian <[email protected]>2022-10-11 12:03:52 +0000
committerSteven Rostedt (Google) <[email protected]>2022-10-12 07:05:47 -0400
commit30f7d1cac2aab8fec560a388ad31ca5e5d04a822 (patch)
treecc10eac59bb68a30e9bec297c6ddfc12150fc6ce /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent4f881a696484a7d31a4d1b12547615b1a3ee5771 (diff)
ftrace: Fix char print issue in print_ip_ins()
When ftrace bug happened, following log shows every hex data in problematic ip address: actual: ffffffe8:6b:ffffffd9:01:21 But so many 'f's seem a little confusing, and that is because format '%x' being used to print signed chars in array 'ins'. As suggested by Joe, change to use format "%*phC" to print array 'ins'. After this patch, the log is like: actual: e8:6b:d9:01:21 Link: https://lkml.kernel.org/r/[email protected] Fixes: 6c14133d2d3f ("ftrace: Do not blindly read the ip address in ftrace_bug()") Suggested-by: Joe Perches <[email protected]> Signed-off-by: Zheng Yejian <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions