diff options
| author | Jiayuan Chen <[email protected]> | 2025-03-11 11:28:08 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2025-03-17 20:50:56 +0000 |
| commit | 8d86767be9c9b94f196e663e0ca88e2eb604a20e (patch) | |
| tree | 7a1e483a41b5ad31d25a616185dd2dd8e274e6f9 /tools/bpf/bpftool/prog.c | |
| parent | Merge branch 'support-freplace-prog-from-user-namespace' (diff) | |
| download | kernel-8d86767be9c9b94f196e663e0ca88e2eb604a20e.tar.gz kernel-8d86767be9c9b94f196e663e0ca88e2eb604a20e.zip | |
bpftool: Add -Wformat-signedness flag to detect format errors
This commit adds the -Wformat-signedness compiler flag to detect and
prevent printf format errors, where signed or unsigned types are
mismatched with format specifiers. This helps to catch potential issues at
compile-time, ensuring that our code is more robust and reliable. With
this flag, the compiler will now warn about incorrect format strings, such
as using %d with unsigned types or %u with signed types.
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/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
