summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>2018-08-31 11:10:56 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-09-14 20:08:41 +0200
commit96765f68de41bc2d70aa3b6bf8147990b011a61c (patch)
tree3a8e5e81455a62c30984554137c00efffe1bfea8 /app
parentdc7680e8597c227b3ba9becbf21cefd51b2b8577 (diff)
downloaddpdk-96765f68de41bc2d70aa3b6bf8147990b011a61c.zip
dpdk-96765f68de41bc2d70aa3b6bf8147990b011a61c.tar.gz
dpdk-96765f68de41bc2d70aa3b6bf8147990b011a61c.tar.xz
app/testpmd: show errno along with flow API errors
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 92686a0..a0f9349 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;
}