From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=NYmxhiOsB3I9J9NqSaI1fD6LNwx69gJkq1FCeWfQLMo=; b=NX6DuHu+IGVmOA0MMl4jTPdsw2Pk1/TkWbeckYDUNItb6jYUQWIAi6EcAbzHxlJS96 LHBW2pwyVoWCYjcAnWwQ/5aR4cG4IEWVIAkvHi8IGq7EgBAsI/5ZGeBIIGBTOaYXSqqh rYwjcNxKQRAvQep0UHb4oDKk7c6E+OYSRR4ClwIHM0V66QaBpC/Pux615t2s9i33F/lq wfqUlwbAXm3gZgPUddhRy+P2HvqfVy/6FdoOoJujmy/XZHvBsCGscbsCmI4wQyP3ZvdQ R9ahPc6Wey0Q8Vf3cRgijR9PPd8l8dNkhM9JGKcJ+GEWT7VSIuy0ynauePut8EBqIEcC +4tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=NYmxhiOsB3I9J9NqSaI1fD6LNwx69gJkq1FCeWfQLMo=; b=YRbctAsqE359bRaX1L3oWyHunHQB7GHqkWjxl+E4n/2PtKcp4MZSa3YJ/wkZe716Ch v2vk1WPwtAXLtjYALZUYzCLjcndP4ax49HEkJw0pINZYFDhSk46oBUbYfGz+vva+H80D 9YjnQI5qkgKcGbcPRvF1wfxLP2Dsglh8EHJAzuiHeUhrTGQE6riS5Ork7g2pdonKIYgt WOAQYr0ZOcgq8WCcHR3KMUz2GfDcNEM00/dpFGq0jJ9xGSnxHM9r89WnN2YPUKS+0VD0 sBXposZJIdNZ24kI7EFqB1qckaRcRwmD5KY7x3CknUTzpciRhNPdAs+hofm4Ted4H7lC sjJA== X-Gm-Message-State: APzg51C09nALtocBa/lrKiSuQEy3T9LToNqwS/gZ3Kpbe/flUBKGB/In r9bjRx9ELkKH3E/PHfh1ltnicA== X-Google-Smtp-Source: ANB0VdYfCd+cC/rt7NDzgSjHIfyH7q1JvC1t5IXyvwxekcphDr3q12ix+IyOBWCyIFyM4ilgY07Asg== X-Received: by 2002:adf:edd2:: with SMTP id v18-v6mr10696358wro.39.1535706672707; Fri, 31 Aug 2018 02:11:12 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id o15-v6sm7790951wru.23.2018.08.31.02.11.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 02:11:11 -0700 (PDT) Date: Fri, 31 Aug 2018 11:10:56 +0200 From: Adrien Mazarguil To: Ferruh Yigit Cc: dev@dpdk.org Message-ID: <20180831090850.22357-1-adrien.mazarguil@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] app/testpmd: show errno along with flow API errors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 09:11:13 -0000 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