[dpdk-dev] [PATCH] examples/pipeline: fix strtoul base

Churchill Khangar churchill.khangar at intel.com
Fri Mar 5 16:15:30 CET 2021


This patch addresses the issue with strtoul base

Fixes: 5074e1d55107 ("examples/pipeline: add configuration commands")
Cc: cristian.dumitrescu at intel.com

Signed-off-by: Churchill Khangar <churchill.khangar at intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu at 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



More information about the dev mailing list