DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] test/bpf: fix wrong error variable
@ 2021-04-21 11:36 Min Hu (Connor)
  2021-04-21 11:41 ` Ananyev, Konstantin
  0 siblings, 1 reply; 3+ messages in thread
From: Min Hu (Connor) @ 2021-04-21 11:36 UTC (permalink / raw)
  To: dev; +Cc: ferruh.yigit, konstantin.ananyev

This patch fixed wrong error variable in logging message.

Fixes: 83633ba23076 ("test/bpf: fix few small issues")
Cc: stable@dpdk.org

Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
---
 app/test/test_bpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c
index 7c3de96..527c06b 100644
--- a/app/test/test_bpf.c
+++ b/app/test/test_bpf.c
@@ -3207,7 +3207,7 @@ run_test(const struct bpf_test *tst)
 			printf("%s@%d: check_result(%s) failed, "
 				"error: %d(%s);\n",
 				__func__, __LINE__, tst->name,
-				rv, strerror(ret));
+				rv, strerror(rv));
 		}
 	}
 
-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-21 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 11:36 [dpdk-dev] [PATCH] test/bpf: fix wrong error variable Min Hu (Connor)
2021-04-21 11:41 ` Ananyev, Konstantin
2021-04-21 15:13   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).