mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2026-01-26 14:13:24 +00:00
ss: fix format string warnings
Clang complains that format string is not a string literal unless the functions are annotated. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
c6c39f3c6d
commit
357808abd3
@ -1043,6 +1043,7 @@ static int buf_update(int len)
|
||||
}
|
||||
|
||||
/* Append content to buffer as part of the current field */
|
||||
__attribute__((format(printf, 1, 0)))
|
||||
static void vout(const char *fmt, va_list args)
|
||||
{
|
||||
struct column *f = current_field;
|
||||
@ -3460,6 +3461,7 @@ static int bpf_maps_opts_load_btf(struct bpf_map_info *info, struct btf **btf)
|
||||
return 0;
|
||||
}
|
||||
|
||||
__attribute__((format(printf, 2, 0)))
|
||||
static void out_bpf_sk_storage_print_fn(void *ctx, const char *fmt, va_list args)
|
||||
{
|
||||
vout(fmt, args);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user