OSDN Git Service

samples: bpf: Update outdated error message
authorDaniel T. Lee <danieltimlee@gmail.com>
Thu, 7 Nov 2019 00:51:52 +0000 (09:51 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 9 Nov 2019 03:19:43 +0000 (19:19 -0800)
commitafbe3c27d9ae151be33ccd6b05699d3c49dabad2
tree6199d27c3dfba6d334ec4d66f84009b0075dce0f
parented5941af3f67ba9062b98aba1a6ca398867dc0de
samples: bpf: Update outdated error message

Currently, under samples, several methods are being used to load bpf
program.

Since using libbpf is preferred solution, lots of previously used
'load_bpf_file' from bpf_load are replaced with 'bpf_prog_load_xattr'
from libbpf.

But some of the error messages still show up as 'load_bpf_file' instead
of 'bpf_prog_load_xattr'.

This commit fixes outdated errror messages under samples and fixes some
code style issues.

Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191107005153.31541-2-danieltimlee@gmail.com
samples/bpf/hbm.c
samples/bpf/xdp1_user.c
samples/bpf/xdp_rxq_info_user.c
samples/bpf/xdp_sample_pkts_user.c
samples/bpf/xdp_tx_iptunnel_user.c