* [dpdk-dev] [PATCH] examples/pipeline: fix strtoul base
@ 2021-03-05 15:15 Churchill Khangar
2021-03-24 9:05 ` Thomas Monjalon
2021-03-24 12:22 ` [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args Churchill Khangar
0 siblings, 2 replies; 7+ messages in thread
From: Churchill Khangar @ 2021-03-05 15:15 UTC (permalink / raw)
To: dev
Cc: cristian.dumitrescu, venkata.suresh.kumar.p, churchill.khangar,
yogesh.jangra
This patch addresses the issue with strtoul base
Fixes: 5074e1d55107 ("examples/pipeline: add configuration commands")
Cc: cristian.dumitrescu@intel.com
Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
examples/pipeline/cli.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c
index e97e120..631c325 100644
--- a/examples/pipeline/cli.c
+++ b/examples/pipeline/cli.c
@@ -53,7 +53,7 @@
if (!isdigit(*p))
return -EINVAL;
- val = strtoul(p, &next, 10);
+ val = strtoul(p, &next, 0);
if (p == next)
return -EINVAL;
--
1.8.3.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/pipeline: fix strtoul base
2021-03-05 15:15 [dpdk-dev] [PATCH] examples/pipeline: fix strtoul base Churchill Khangar
@ 2021-03-24 9:05 ` Thomas Monjalon
2021-03-24 10:41 ` Dumitrescu, Cristian
2021-03-24 12:22 ` [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args Churchill Khangar
1 sibling, 1 reply; 7+ messages in thread
From: Thomas Monjalon @ 2021-03-24 9:05 UTC (permalink / raw)
To: Churchill Khangar
Cc: dev, cristian.dumitrescu, venkata.suresh.kumar.p, yogesh.jangra
05/03/2021 16:15, Churchill Khangar:
> This patch addresses the issue with strtoul base
Which issue?
Please explain what is broken and how it is fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [PATCH] examples/pipeline: fix strtoul base
2021-03-24 9:05 ` Thomas Monjalon
@ 2021-03-24 10:41 ` Dumitrescu, Cristian
0 siblings, 0 replies; 7+ messages in thread
From: Dumitrescu, Cristian @ 2021-03-24 10:41 UTC (permalink / raw)
To: Thomas Monjalon, Khangar, Churchill
Cc: dev, P, Venkata Suresh Kumar, Jangra, Yogesh
> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Wednesday, March 24, 2021 9:05 AM
> To: Khangar, Churchill <churchill.khangar@intel.com>
> Cc: dev@dpdk.org; Dumitrescu, Cristian <cristian.dumitrescu@intel.com>; P,
> Venkata Suresh Kumar <venkata.suresh.kumar.p@intel.com>; Jangra,
> Yogesh <yogesh.jangra@intel.com>
> Subject: Re: [dpdk-dev] [PATCH] examples/pipeline: fix strtoul base
>
> 05/03/2021 16:15, Churchill Khangar:
> > This patch addresses the issue with strtoul base
>
> Which issue?
> Please explain what is broken and how it is fixed.
>
>
Nothing is broken here, this is incorrectly labeled as a fix. This is simply an small improvement to allow specification of integer arguments for the CLI commands in hexadecimal ( and octal :) ) as well as decimal, as opposed to just decimal.
Churchill, it would be great if you could update the title and description to reflect this as opposed to claiming a fix, and send v2, thanks!
Regards,
Cristian
^ permalink raw reply [flat|nested] 7+ messages in thread
* [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args
2021-03-05 15:15 [dpdk-dev] [PATCH] examples/pipeline: fix strtoul base Churchill Khangar
2021-03-24 9:05 ` Thomas Monjalon
@ 2021-03-24 12:22 ` Churchill Khangar
2021-03-24 12:31 ` David Marchand
2021-03-24 17:25 ` Thomas Monjalon
1 sibling, 2 replies; 7+ messages in thread
From: Churchill Khangar @ 2021-03-24 12:22 UTC (permalink / raw)
To: dev
Cc: cristian.dumitrescu, venkata.suresh.kumar.p, churchill.khangar,
yogesh.jangra
This patch allows specification of integer arguments for the
CLI commands in hexadecimal and octal as well as decimal.
Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
examples/pipeline/cli.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c
index ae06658..ef49eb8 100644
--- a/examples/pipeline/cli.c
+++ b/examples/pipeline/cli.c
@@ -55,7 +55,7 @@
if (!isdigit(*p))
return -EINVAL;
- val = strtoul(p, &next, 10);
+ val = strtoul(p, &next, 0);
if (p == next)
return -EINVAL;
--
1.8.3.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args
2021-03-24 12:22 ` [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args Churchill Khangar
@ 2021-03-24 12:31 ` David Marchand
2021-03-24 12:52 ` Dumitrescu, Cristian
2021-03-24 17:25 ` Thomas Monjalon
1 sibling, 1 reply; 7+ messages in thread
From: David Marchand @ 2021-03-24 12:31 UTC (permalink / raw)
To: Churchill Khangar
Cc: dev, Cristian Dumitrescu, P, Venkata Suresh Kumar, Yogesh Jangra
On Wed, Mar 24, 2021 at 1:20 PM Churchill Khangar
<churchill.khangar@intel.com> wrote:
>
> This patch allows specification of integer arguments for the
> CLI commands in hexadecimal and octal as well as decimal.
>
> Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
> ---
> examples/pipeline/cli.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c
> index ae06658..ef49eb8 100644
> --- a/examples/pipeline/cli.c
> +++ b/examples/pipeline/cli.c
> @@ -55,7 +55,7 @@
> if (!isdigit(*p))
Not directly related to this change, but the isdigit() check is
probably useless.
strtoul returns the first invalid char.
> return -EINVAL;
>
> - val = strtoul(p, &next, 10);
> + val = strtoul(p, &next, 0);
--
David Marchand
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args
2021-03-24 12:31 ` David Marchand
@ 2021-03-24 12:52 ` Dumitrescu, Cristian
0 siblings, 0 replies; 7+ messages in thread
From: Dumitrescu, Cristian @ 2021-03-24 12:52 UTC (permalink / raw)
To: David Marchand, Khangar, Churchill
Cc: dev, P, Venkata Suresh Kumar, Jangra, Yogesh
> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Wednesday, March 24, 2021 12:31 PM
> To: Khangar, Churchill <churchill.khangar@intel.com>
> Cc: dev <dev@dpdk.org>; Dumitrescu, Cristian
> <cristian.dumitrescu@intel.com>; P, Venkata Suresh Kumar
> <venkata.suresh.kumar.p@intel.com>; Jangra, Yogesh
> <yogesh.jangra@intel.com>
> Subject: Re: [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args
>
> On Wed, Mar 24, 2021 at 1:20 PM Churchill Khangar
> <churchill.khangar@intel.com> wrote:
> >
> > This patch allows specification of integer arguments for the
> > CLI commands in hexadecimal and octal as well as decimal.
> >
> > Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
> > Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
> > ---
> > examples/pipeline/cli.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c
> > index ae06658..ef49eb8 100644
> > --- a/examples/pipeline/cli.c
> > +++ b/examples/pipeline/cli.c
> > @@ -55,7 +55,7 @@
> > if (!isdigit(*p))
>
> Not directly related to this change, but the isdigit() check is
> probably useless.
> strtoul returns the first invalid char.
>
Yes, correct, more improvements could be made, we'll put it on the to-do list. Thanks, David.
> > return -EINVAL;
> >
> > - val = strtoul(p, &next, 10);
> > + val = strtoul(p, &next, 0);
>
>
> --
> David Marchand
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args
2021-03-24 12:22 ` [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args Churchill Khangar
2021-03-24 12:31 ` David Marchand
@ 2021-03-24 17:25 ` Thomas Monjalon
1 sibling, 0 replies; 7+ messages in thread
From: Thomas Monjalon @ 2021-03-24 17:25 UTC (permalink / raw)
To: Churchill Khangar
Cc: dev, cristian.dumitrescu, venkata.suresh.kumar.p, yogesh.jangra
24/03/2021 13:22, Churchill Khangar:
> This patch allows specification of integer arguments for the
> CLI commands in hexadecimal and octal as well as decimal.
>
> Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-03-24 17:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 15:15 [dpdk-dev] [PATCH] examples/pipeline: fix strtoul base Churchill Khangar
2021-03-24 9:05 ` Thomas Monjalon
2021-03-24 10:41 ` Dumitrescu, Cristian
2021-03-24 12:22 ` [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args Churchill Khangar
2021-03-24 12:31 ` David Marchand
2021-03-24 12:52 ` Dumitrescu, Cristian
2021-03-24 17:25 ` Thomas Monjalon
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).