From: Xiaozhou Liu Date: Fri, 21 Dec 2018 09:35:11 +0000 (+0800) Subject: selftests/bpf: fix error printing in test_devmap() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8b6b25cf93b73e8e399adc55b0ffb9db32b881e0;p=linux.git selftests/bpf: fix error printing in test_devmap() As a simple fix, just print the correct map type. Signed-off-by: Xiaozhou Liu Signed-off-by: Daniel Borkmann --- diff --git a/tools/testing/selftests/bpf/test_maps.c b/tools/testing/selftests/bpf/test_maps.c index 9c79ee017df3b..e2b9eee371873 100644 --- a/tools/testing/selftests/bpf/test_maps.c +++ b/tools/testing/selftests/bpf/test_maps.c @@ -510,7 +510,7 @@ static void test_devmap(int task, void *data) fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value), 2, 0); if (fd < 0) { - printf("Failed to create arraymap '%s'!\n", strerror(errno)); + printf("Failed to create devmap '%s'!\n", strerror(errno)); exit(1); }