aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/str_error.c
diff options
context:
space:
mode:
authorJiayuan Chen <[email protected]>2025-03-11 11:28:09 +0000
committerAndrii Nakryiko <[email protected]>2025-03-17 20:50:56 +0000
commit3775be3417cc3243b0df0492bd308559dcf0560b (patch)
tree33f45a2bcc436b5864e1676b3c2816b406bdfc7d /tools/lib/bpf/str_error.c
parentbpftool: Add -Wformat-signedness flag to detect format errors (diff)
downloadkernel-3775be3417cc3243b0df0492bd308559dcf0560b.tar.gz
kernel-3775be3417cc3243b0df0492bd308559dcf0560b.zip
bpftool: Using the right format specifiers
Fixed some formatting specifiers errors, such as using %d for int and %u for unsigned int, as well as other byte-length types. Perform type cast using the type derived from the data type itself, for example, if it's originally an int, it will be cast to unsigned int if forced to unsigned. Signed-off-by: Jiayuan Chen <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/str_error.c')
0 files changed, 0 insertions, 0 deletions