aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2024-08-07 23:51:44 +0200
committerThomas Weißschuh <[email protected]>2024-08-12 22:22:13 +0200
commitf1a58f61d88642ae1e6e97e9d72d73bc70a93cb8 (patch)
tree034a87ff84bf9775a61e28f2a54acb715f39f437 /tools/perf/util/scripting-engines/trace-event-python.c
parentddae1d7fab8c5dc5d12da120dc410c4f374d37c3 (diff)
selftests/nolibc: avoid passing NULL to printf("%s")
Clang on higher optimization levels detects that NULL is passed to printf("%s") and warns about it. While printf() from nolibc gracefully handles that NULL, it is undefined behavior as per POSIX, so the warning is reasonable. Avoid the warning by transforming NULL into a non-NULL placeholder. Reviewed-by: Shuah Khan <[email protected]> Acked-by: Willy Tarreau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions