Skip to content

Commit 8b6b25c

Browse files
boat0borkmann
authored andcommitted
selftests/bpf: fix error printing in test_devmap()
As a simple fix, just print the correct map type. Signed-off-by: Xiaozhou Liu <liuxiaozhou@bytedance.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent 756af9c commit 8b6b25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/test_maps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static void test_devmap(int task, void *data)
510510
fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value),
511511
2, 0);
512512
if (fd < 0) {
513-
printf("Failed to create arraymap '%s'!\n", strerror(errno));
513+
printf("Failed to create devmap '%s'!\n", strerror(errno));
514514
exit(1);
515515
}
516516

0 commit comments

Comments
 (0)