From: Adrien Mazarguil Subject: [PATCH] app/testpmd: show errno along with flow API errors Date: Fri, 31 Aug 2018 11:10:56 +0200 Message-ID: <20180831090850.22357-1-adrien.mazarguil@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by dpdk.org (Postfix) with ESMTP id E67602BA3 for ; Fri, 31 Aug 2018 11:11:12 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id 20-v6so10508762wrb.12 for ; Fri, 31 Aug 2018 02:11:12 -0700 (PDT) Content-Disposition: inline List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Adrien Mazarguil --- 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 669be168b..84e817ff2 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -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; } -- 2.11.0