diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-11-27 12:16:46 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-28 22:40:30 -0800 |
commit | e5dc9dd3258098bf8b5ceb75fc3433b41eff618a (patch) | |
tree | c221b6c928b70543c9c5d1ba29c60b33448a74c3 /tools/testing/selftests/bpf/xdping.c | |
parent | 4b67c515036313f3c3ecba3cb2babb9cbddb3f85 (diff) |
selftests: bpf: correct perror strings
perror(str) is basically equivalent to
print("%s: %s\n", str, strerror(errno)).
New line or colon at the end of str is
a mistake/breaks formatting.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/xdping.c')
-rw-r--r-- | tools/testing/selftests/bpf/xdping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/xdping.c b/tools/testing/selftests/bpf/xdping.c index d60a343b1371..842d9155d36c 100644 --- a/tools/testing/selftests/bpf/xdping.c +++ b/tools/testing/selftests/bpf/xdping.c @@ -45,7 +45,7 @@ static int get_stats(int fd, __u16 count, __u32 raddr) printf("\nXDP RTT data:\n"); if (bpf_map_lookup_elem(fd, &raddr, &pinginfo)) { - perror("bpf_map_lookup elem: "); + perror("bpf_map_lookup elem"); return 1; } |