* [dpdk-dev] [PATCH] testpmd: Fix wrong message when no port started
@ 2015-02-03 8:37 Michael Qiu
2015-03-23 13:52 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: Michael Qiu @ 2015-02-03 8:37 UTC (permalink / raw)
To: dev
The log message is wrong when no port started.
Signed-off-by: Michael Qiu <michael.qiu@intel.com>
---
app/test-pmd/testpmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 773b8af..ebf9448 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -1423,7 +1423,7 @@ start_port(portid_t pid)
if (need_check_link_status && !no_link_check)
check_all_ports_link_status(nb_ports, RTE_PORT_ALL);
else
- printf("Please stop the ports first\n");
+ printf("Please start at least one port first\n");
printf("Done\n");
return 0;
--
1.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: Fix wrong message when no port started
2015-02-03 8:37 [dpdk-dev] [PATCH] testpmd: Fix wrong message when no port started Michael Qiu
@ 2015-03-23 13:52 ` Thomas Monjalon
2015-03-25 12:34 ` De Lara Guarch, Pablo
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2015-03-23 13:52 UTC (permalink / raw)
To: Michael Qiu, Pablo de Lara; +Cc: dev
Pablo, what is your opinion on this patch?
2015-02-03 16:37, Michael Qiu:
> The log message is wrong when no port started.
>
> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
> ---
> app/test-pmd/testpmd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
> index 773b8af..ebf9448 100644
> --- a/app/test-pmd/testpmd.c
> +++ b/app/test-pmd/testpmd.c
> @@ -1423,7 +1423,7 @@ start_port(portid_t pid)
> if (need_check_link_status && !no_link_check)
> check_all_ports_link_status(nb_ports, RTE_PORT_ALL);
> else
> - printf("Please stop the ports first\n");
> + printf("Please start at least one port first\n");
Why the word "first"?
What could lead to this situation? Wrong pid?
Shouldn't be an error returned?
>
> printf("Done\n");
> return 0;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: Fix wrong message when no port started
2015-03-23 13:52 ` Thomas Monjalon
@ 2015-03-25 12:34 ` De Lara Guarch, Pablo
0 siblings, 0 replies; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2015-03-25 12:34 UTC (permalink / raw)
To: Thomas Monjalon, Qiu, Michael; +Cc: dev
> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com]
> Sent: Monday, March 23, 2015 1:53 PM
> To: Qiu, Michael; De Lara Guarch, Pablo
> Cc: dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] testpmd: Fix wrong message when no port
> started
>
> Pablo, what is your opinion on this patch?
Sorry for the delay, I missed this email.
>
> 2015-02-03 16:37, Michael Qiu:
> > The log message is wrong when no port started.
> >
> > Signed-off-by: Michael Qiu <michael.qiu@intel.com>
> > ---
> > app/test-pmd/testpmd.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
> > index 773b8af..ebf9448 100644
> > --- a/app/test-pmd/testpmd.c
> > +++ b/app/test-pmd/testpmd.c
> > @@ -1423,7 +1423,7 @@ start_port(portid_t pid)
> > if (need_check_link_status && !no_link_check)
> > check_all_ports_link_status(nb_ports, RTE_PORT_ALL);
> > else
> > - printf("Please stop the ports first\n");
> > + printf("Please start at least one port first\n");
>
> Why the word "first"?
> What could lead to this situation? Wrong pid?
> Shouldn't be an error returned?
I see no reason why we should change this.
Code has changed since, so now it only goes there if user is trying to start a port that has been already started.
If pid is wrong, it will show "Port invalid".
So, in a summary, NACK.
Thanks,
Pablo
>
> >
> > printf("Done\n");
> > return 0;
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-25 12:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-03 8:37 [dpdk-dev] [PATCH] testpmd: Fix wrong message when no port started Michael Qiu
2015-03-23 13:52 ` Thomas Monjalon
2015-03-25 12:34 ` De Lara Guarch, Pablo
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).