提交 8b6b25cf 编写于 作者: X Xiaozhou Liu 提交者: Daniel Borkmann

selftests/bpf: fix error printing in test_devmap()

As a simple fix, just print the correct map type.
Signed-off-by: NXiaozhou Liu <liuxiaozhou@bytedance.com>
Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
上级 756af9c6
...@@ -510,7 +510,7 @@ static void test_devmap(int task, void *data) ...@@ -510,7 +510,7 @@ static void test_devmap(int task, void *data)
fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value), fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value),
2, 0); 2, 0);
if (fd < 0) { if (fd < 0) {
printf("Failed to create arraymap '%s'!\n", strerror(errno)); printf("Failed to create devmap '%s'!\n", strerror(errno));
exit(1); exit(1);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册