DPDK patches and discussions
 help / color / mirror / Atom feed
From: Matan Azrad <matan@mellanox.com>
To: "zhiyong.yang@intel.com" <zhiyong.yang@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: "ferruh.yigit@intel.com" <ferruh.yigit@intel.com>,
	"stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] app/testpmd: fix print unused parameter name
Date: Mon, 14 May 2018 10:38:56 +0000	[thread overview]
Message-ID: <VI1PR0501MB260873C11D7649049B42C4A4D29C0@VI1PR0501MB2608.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <20180514032048.34896-1-zhiyong.yang@intel.com>


Hi 

From: zhiyong.yang@intel.com
> The second parameter "name" in the function rte_eth_dev_detach has been
> already redefined as "char *name __rte_unused", "port_id" is printed instead
> of "name" in testpmd.
> 
> Fixes: b65ecf199324 ("devargs: rename legacy API")
> Cc: stable@dpdk.org

Really minor : Missing empty line here.

> Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Acked-by: Matan Azrad <matan@mellanox.com>
> ---
>  app/test-pmd/testpmd.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index
> 664c43554..02a28199b 100644
> --- a/app/test-pmd/testpmd.c
> +++ b/app/test-pmd/testpmd.c
> @@ -1985,7 +1985,7 @@ detach_port(portid_t port_id)
>  		port_flow_flush(port_id);
> 
>  	if (rte_eth_dev_detach(port_id, name)) {
> -		TESTPMD_LOG(ERR, "Failed to detach port '%s'\n", name);
> +		TESTPMD_LOG(ERR, "Failed to detach port %u\n", port_id);
>  		return;
>  	}
> 
> @@ -1993,8 +1993,8 @@ detach_port(portid_t port_id)
> 
>  	update_fwd_ports(RTE_MAX_ETHPORTS);
> 
> -	printf("Port '%s' is detached. Now total ports is %d\n",
> -			name, nb_ports);
> +	printf("Port %u is detached. Now total ports is %d\n",
> +			port_id, nb_ports);
>  	printf("Done\n");
>  	return;
>  }
> --
> 2.14.3

  reply	other threads:[~2018-05-14 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-14  3:20 zhiyong.yang
2018-05-14 10:38 ` Matan Azrad [this message]
2018-05-14 10:51   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR0501MB260873C11D7649049B42C4A4D29C0@VI1PR0501MB2608.eurprd05.prod.outlook.com \
    --to=matan@mellanox.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=stable@dpdk.org \
    --cc=zhiyong.yang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).