summaryrefslogtreecommitdiff
path: root/samples/bpf/hbm.c
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2019-11-07 03:51:52 +0300
committerAlexei Starovoitov <ast@kernel.org>2019-11-09 06:19:43 +0300
commitafbe3c27d9ae151be33ccd6b05699d3c49dabad2 (patch)
tree6199d27c3dfba6d334ec4d66f84009b0075dce0f /samples/bpf/hbm.c
parented5941af3f67ba9062b98aba1a6ca398867dc0de (diff)
downloadlinux-afbe3c27d9ae151be33ccd6b05699d3c49dabad2.tar.xz
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
Diffstat (limited to 'samples/bpf/hbm.c')
-rw-r--r--samples/bpf/hbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/hbm.c b/samples/bpf/hbm.c
index e0fbab9bec83..829b68d87687 100644
--- a/samples/bpf/hbm.c
+++ b/samples/bpf/hbm.c
@@ -147,7 +147,7 @@ static int prog_load(char *prog)
}
if (ret) {
- printf("ERROR: load_bpf_file failed for: %s\n", prog);
+ printf("ERROR: bpf_prog_load_xattr failed for: %s\n", prog);
printf(" Output from verifier:\n%s\n------\n", bpf_log_buf);
ret = -1;
} else {