app/testpmd: show errno along with flow API errors
PATCH 1/1 app/testpmd: show errno along with flow API errors
Signed-off-by Adrien Mazarguil <[email protected]>
--- app/test-pmd/config.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
app/test-pmd/config.c +3 -2
@@ -1048,11 +1048,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; }
Signature · 1 line
2.11.0
Quoted 1 line · Adrien Mazarguil
Signed-off-by Adrien Mazarguil <[email protected]>
Reviewed-by Ferruh Yigit <[email protected]>
Ferruh Yigit
AppliedQuoted 4 lines · Ferruh Yigit
Quoted 1 line · Adrien Mazarguil
Signed-off-by Adrien Mazarguil <[email protected]>Reviewed-by Ferruh Yigit <[email protected]>
Applied to dpdk-next-net/master, thanks.