From 0d644eb621d6bb0bcb7c74031b9bb53fe9396ee3 Mon Sep 17 00:00:00 2001 From: Churchill Khangar Date: Wed, 24 Mar 2021 08:22:33 -0400 Subject: [PATCH] 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 --- 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 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; -- 2.20.1