app/testpmd: improve flow command debug

print function name in port_flow_complain()

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
This commit is contained in:
Bernard Iremonger 2020-01-16 12:44:49 +00:00 committed by Ferruh Yigit
parent 6a42e7ef9d
commit eda749cd22

View File

@ -1303,7 +1303,7 @@ port_flow_complain(struct rte_flow_error *error)
errstr = "unknown type"; errstr = "unknown type";
else else
errstr = errstrlist[error->type]; errstr = errstrlist[error->type];
printf("Caught error type %d (%s): %s%s: %s\n", printf("%s(): Caught PMD error type %d (%s): %s%s: %s\n", __func__,
error->type, errstr, error->type, errstr,
error->cause ? (snprintf(buf, sizeof(buf), "cause: %p, ", error->cause ? (snprintf(buf, sizeof(buf), "cause: %p, ",
error->cause), buf) : "", error->cause), buf) : "",