From: Adrien Mazarguil Date: Fri, 31 Aug 2018 09:10:56 +0000 (+0200) Subject: app/testpmd: show errno along with flow API errors X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=96765f68de41bc2d70aa3b6bf8147990b011a61c;p=dpdk.git app/testpmd: show errno along with flow API errors Signed-off-by: Adrien Mazarguil Reviewed-by: Ferruh Yigit --- 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; }