aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorFedor Tokarev <[email protected]>2022-07-11 21:13:17 +0000
committerAndrii Nakryiko <[email protected]>2022-07-29 16:57:14 +0000
commit58250ae350de8d28ce91ade4605d32c9e7f062a8 (patch)
tree699ec084b200525aa749648350154a45a154e4f9 /tools/bpf/bpftool/prog.c
parentlibbpf: Support PPC in arch_specific_syscall_pfx (diff)
downloadkernel-58250ae350de8d28ce91ade4605d32c9e7f062a8.tar.gz
kernel-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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Alan Maguire <[email protected]> Link: https://lore.kernel.org/bpf/20220711211317.GA1143610@laptop
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions