diff options
| author | Xiaozhou Liu <liuxiaozhou@bytedance.com> | 2018-12-21 04:35:11 -0500 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-01-01 07:48:59 -0500 |
| commit | 8b6b25cf93b73e8e399adc55b0ffb9db32b881e0 (patch) | |
| tree | 3fa3a1f3e72e2227271778d6451905b1c719db53 | |
| parent | 756af9c642329d54f048bac2a62f829b391f6944 (diff) | |
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>
| -rw-r--r-- | tools/testing/selftests/bpf/test_maps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_maps.c b/tools/testing/selftests/bpf/test_maps.c index 9c79ee017df3..e2b9eee37187 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) | |||
| 510 | fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value), | 510 | fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value), |
| 511 | 2, 0); | 511 | 2, 0); |
| 512 | if (fd < 0) { | 512 | if (fd < 0) { |
| 513 | printf("Failed to create arraymap '%s'!\n", strerror(errno)); | 513 | printf("Failed to create devmap '%s'!\n", strerror(errno)); |
| 514 | exit(1); | 514 | exit(1); |
| 515 | } | 515 | } |
| 516 | 516 | ||
