diff options
author | 2022-07-11 23:13:17 +0200 | |
---|---|---|
committer | 2022-07-29 09:57:14 -0700 | |
commit | 58250ae350de8d28ce91ade4605d32c9e7f062a8 (patch) | |
tree | 699ec084b200525aa749648350154a45a154e4f9 /tools/testing/selftests/bpf/prog_tests/send_signal.c | |
parent | libbpf: Support PPC in arch_specific_syscall_pfx (diff) | |
download | wireguard-linux-58250ae350de8d28ce91ade4605d32c9e7f062a8.tar.xz wireguard-linux-58250ae350de8d28ce91ade4605d32c9e7f062a8.zip |
bpf: btf: Fix vsnprintf return value check
vsnprintf returns the number of characters which would have been written if
enough space had been available, excluding the terminating null byte. Thus,
the return value of 'len_left' means that the last character has been
dropped.
Signed-off-by: Fedor Tokarev <ftokarev@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Alan Maguire <alan.maguire@oracle.com>
Link: https://lore.kernel.org/bpf/20220711211317.GA1143610@laptop
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/send_signal.c')
0 files changed, 0 insertions, 0 deletions