Skip to contentSkip to conversation

test/bpf: fix wrong error variable

PATCH Applied Min Hu (Connor) 3 participants 3 messages Apr 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/bpf: fix wrong error variable

This patch fixed wrong error variable in logging message.

Fixes 83633ba23076 ("test/bpf: fix few small issues")
---
 app/test/test_bpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test/test_bpf.c +1 -1
index 7c3de96..527c06b 100644
@@ -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));
 		}
 	}
 
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw
Quoted 24 lines

-----Original Message-----
From: Min Hu (Connor) <[email protected]>
Sent: Wednesday, April 21, 2021 12:37 PM
To: [email protected]
Cc: Yigit, Ferruh <[email protected]>; Ananyev, Konstantin <[email protected]>
Subject: [PATCH] test/bpf: fix wrong error variable

This patch fixed wrong error variable in logging message.

Fixes 83633ba23076 ("test/bpf: fix few small issues")
---
 app/test/test_bpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test/test_bpf.c +0 -0
index 7c3de96..527c06b 100644

app/test/test_bpf.c run_test(const struct bpf_test *tst)

Quoted 9 lines
app/test/test_bpf.c +1 -2
@@ -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));
 		}
 	}
 
--
Quoted 1 line

2.7.4