* [PATCH bpf-next] selftests/bpf: fix error printing in test_devmap()
@ 2018-12-21 9:35 ` liuxiaozhou
0 siblings, 0 replies; 6+ messages in thread
From: Xiaozhou Liu @ 2018-12-21 9:35 UTC (permalink / raw)
To: netdev
Cc: Xiaozhou Liu, Alexei Starovoitov, Daniel Borkmann, Shuah Khan,
linux-kernel, linux-kselftest
As a simple fix, just print the correct map type.
Signed-off-by: Xiaozhou Liu <liuxiaozhou@bytedance.com>
---
tools/testing/selftests/bpf/test_maps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
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);
}
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH bpf-next] selftests/bpf: fix error printing in test_devmap()
@ 2018-12-21 9:35 ` liuxiaozhou
0 siblings, 0 replies; 6+ messages in thread
From: liuxiaozhou @ 2018-12-21 9:35 UTC (permalink / raw)
As a simple fix, just print the correct map type.
Signed-off-by: Xiaozhou Liu <liuxiaozhou at bytedance.com>
---
tools/testing/selftests/bpf/test_maps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
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);
}
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH bpf-next] selftests/bpf: fix error printing in test_devmap()
@ 2018-12-21 9:35 ` liuxiaozhou
0 siblings, 0 replies; 6+ messages in thread
From: Xiaozhou Liu @ 2018-12-21 9:35 UTC (permalink / raw)
As a simple fix, just print the correct map type.
Signed-off-by: Xiaozhou Liu <liuxiaozhou at bytedance.com>
---
tools/testing/selftests/bpf/test_maps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
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);
}
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH bpf-next] selftests/bpf: fix error printing in test_devmap()
2018-12-21 9:35 ` liuxiaozhou
(?)
@ 2019-01-01 12:52 ` daniel
-1 siblings, 0 replies; 6+ messages in thread
From: Daniel Borkmann @ 2019-01-01 12:52 UTC (permalink / raw)
To: Xiaozhou Liu, netdev
Cc: Alexei Starovoitov, Shuah Khan, linux-kernel, linux-kselftest
On 12/21/2018 10:35 AM, Xiaozhou Liu wrote:
> As a simple fix, just print the correct map type.
>
> Signed-off-by: Xiaozhou Liu <liuxiaozhou@bytedance.com>
Applied to bpf, thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH bpf-next] selftests/bpf: fix error printing in test_devmap()
@ 2019-01-01 12:52 ` daniel
0 siblings, 0 replies; 6+ messages in thread
From: daniel @ 2019-01-01 12:52 UTC (permalink / raw)
On 12/21/2018 10:35 AM, Xiaozhou Liu wrote:
> As a simple fix, just print the correct map type.
>
> Signed-off-by: Xiaozhou Liu <liuxiaozhou at bytedance.com>
Applied to bpf, thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH bpf-next] selftests/bpf: fix error printing in test_devmap()
@ 2019-01-01 12:52 ` daniel
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Borkmann @ 2019-01-01 12:52 UTC (permalink / raw)
On 12/21/2018 10:35 AM, Xiaozhou Liu wrote:
> As a simple fix, just print the correct map type.
>
> Signed-off-by: Xiaozhou Liu <liuxiaozhou at bytedance.com>
Applied to bpf, thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-01-01 12:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-21 9:35 [PATCH bpf-next] selftests/bpf: fix error printing in test_devmap() Xiaozhou Liu
2018-12-21 9:35 ` Xiaozhou Liu
2018-12-21 9:35 ` liuxiaozhou
2019-01-01 12:52 ` Daniel Borkmann
2019-01-01 12:52 ` Daniel Borkmann
2019-01-01 12:52 ` daniel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.