From: Churchill Khangar Date: Wed, 24 Mar 2021 12:22:33 +0000 (-0400) Subject: examples/pipeline: support hexadecimal argument in CLI X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0d644eb621d6bb0bcb7c74031b9bb53fe9396ee3;p=dpdk.git examples/pipeline: support hexadecimal argument in CLI This patch allows specification of integer arguments for the CLI commands in hexadecimal and octal as well as decimal. Signed-off-by: Churchill Khangar Acked-by: Cristian Dumitrescu --- diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index ae06658e2f..ef49eb86ac 100644 --- a/examples/pipeline/cli.c +++ b/examples/pipeline/cli.c @@ -55,7 +55,7 @@ parser_read_uint64(uint64_t *value, const char *p) if (!isdigit(*p)) return -EINVAL; - val = strtoul(p, &next, 10); + val = strtoul(p, &next, 0); if (p == next) return -EINVAL;