> -----Original Message-----
> From: Min Hu (Connor) <humi...@huawei.com>
> Sent: Wednesday, April 21, 2021 12:37 PM
> To: dev@dpdk.org
> Cc: Yigit, Ferruh <ferruh.yi...@intel.com>; Ananyev, Konstantin 
> <konstantin.anan...@intel.com>
> 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")
> Cc: sta...@dpdk.org
> 
> Signed-off-by: Min Hu (Connor) <humi...@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));
>               }
>       }
> 
> --

Acked-by: Konstantin Ananyev <konstantin.anan...@intel.com>

> 2.7.4

Reply via email to