Commit 8b6b25cf authored by Xiaozhou Liu's avatar Xiaozhou Liu Committed by Daniel Borkmann

selftests/bpf: fix error printing in test_devmap()

As a simple fix, just print the correct map type.
Signed-off-by: default avatarXiaozhou Liu <>
Signed-off-by: default avatarDaniel Borkmann <>
parent 756af9c6
......@@ -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));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment