From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A90C8A0A02; Wed, 24 Mar 2021 13:19:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 648864067B; Wed, 24 Mar 2021 13:19:46 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 2C05B4014F for ; Wed, 24 Mar 2021 13:19:44 +0100 (CET) IronPort-SDR: CJFVSvL2na1nplVX0plf1Et2XhOQPnwIEh97y97zLyicKBePwFq57LwxC/nFR6vmZdgWX5Fme4 LcYlsizkeQRA== X-IronPort-AV: E=McAfee;i="6000,8403,9932"; a="254685495" X-IronPort-AV: E=Sophos;i="5.81,274,1610438400"; d="scan'208";a="254685495" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2021 05:19:42 -0700 IronPort-SDR: 2UF2P1sJEei8h0cElmVktBcwlwfDyRyFGRdIIUEMzJCZVI0ZWNIWEaEzbRgHWMOjEWssuRewun VIEB1B0Hp65g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,274,1610438400"; d="scan'208";a="442197059" Received: from fourhctwonone.iind.intel.com (HELO bdcdev09.localdomain) ([10.190.193.143]) by fmsmga002.fm.intel.com with ESMTP; 24 Mar 2021 05:19:41 -0700 From: Churchill Khangar To: dev@dpdk.org Cc: cristian.dumitrescu@intel.com, venkata.suresh.kumar.p@intel.com, churchill.khangar@intel.com, yogesh.jangra@intel.com Date: Wed, 24 Mar 2021 08:22:33 -0400 Message-Id: <1616588553-47065-1-git-send-email-churchill.khangar@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1614957330-9469-1-git-send-email-churchill.khangar@intel.com> References: <1614957330-9469-1-git-send-email-churchill.khangar@intel.com> Subject: [dpdk-dev] [PATCH v2] examples/pipeline: support CLI hex args X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 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