From 96765f68de41bc2d70aa3b6bf8147990b011a61c Mon Sep 17 00:00:00 2001 From: Adrien Mazarguil Date: Fri, 31 Aug 2018 11:10:56 +0200 Subject: [PATCH] app/testpmd: show errno along with flow API errors Signed-off-by: Adrien Mazarguil Reviewed-by: Ferruh Yigit --- app/test-pmd/config.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 92686a05f5..a0f934932e 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1346,11 +1346,12 @@ port_flow_complain(struct rte_flow_error *error) errstr = "unknown type"; else errstr = errstrlist[error->type]; - printf("Caught error type %d (%s): %s%s\n", + printf("Caught error type %d (%s): %s%s: %s\n", error->type, errstr, error->cause ? (snprintf(buf, sizeof(buf), "cause: %p, ", error->cause), buf) : "", - error->message ? error->message : "(no stated reason)"); + error->message ? error->message : "(no stated reason)", + rte_strerror(err)); return -err; } -- 2.20.1