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 CC4B4A0A02; Wed, 24 Mar 2021 13:31:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 58B7D4067B; Wed, 24 Mar 2021 13:31:34 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 67B914014F for ; Wed, 24 Mar 2021 13:31:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616589091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kHGYFrv0XOIDjJNnrqpgHmbMhvX/t0279j5CGiEq9XY=; b=hlgFcmaEwq/qIxhHBCZj+xJqNCwT0t80bnexZUc31wpNxCZj8evXaGLgby57g7k4Byxppd b0zr2CFF1RZXvfrgcZrfuBP2HXoZZcnmTJw7kGFJtbwmKQtBqbF69dy9xD7sGs9WVrOgyV n91YEpmabwrVe8KMPNIa13m+b2PnfGM= Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-351-sSHrBv6zM-y5dIWoSPUkVQ-1; Wed, 24 Mar 2021 08:31:30 -0400 X-MC-Unique: sSHrBv6zM-y5dIWoSPUkVQ-1 Received: by mail-vs1-f72.google.com with SMTP id 125so568846vsj.0 for ; Wed, 24 Mar 2021 05:31:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kHGYFrv0XOIDjJNnrqpgHmbMhvX/t0279j5CGiEq9XY=; b=Mg5iN0Zm6wpGApRlHolWfM0ov8FupMJnmluvRikNgNkc371UmvFYJFBkZgkuSrclnM k3O34yK7mSAgAB3u0xkDhsyE1uhMvQeAQXWcWqWAoQJ1dw8eukSqz++uNAF8tTqSL0GZ /cIuIVdeg0fDFjsX6nQtMtYlTj572M13BB9MeLmle8V/7gcnCegOFboJSxlyvbKGEcbC YApNp8HQRx0F+yDwEOm+/2uCifMypvUWNd9UQk85YqkLYQkKPKcFLjryuy4eReUpe3mc WbMRj7etD/JZh/B9xerHNLcLMRZSdIp0Ko6RQ38LhslohI0+5vGOc6lAC3juWNF3Lrw/ +UhA== X-Gm-Message-State: AOAM531k+tOR0jU96mV2EpY0LmXteDOdKPTlu2rrTbKFllD2Qh6nmCBU IbfsywCTt37MsBjC3+YLXwlsgmJP4SJhR9130rneA/78pbxmiXKctIgzljDjeu30d6Y/2ZR0P17 UFJ2nO7Y+UKlIuqf4/Nk= X-Received: by 2002:a1f:3250:: with SMTP id y77mr1224684vky.20.1616589089321; Wed, 24 Mar 2021 05:31:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7naPBzJ+nKTfttCNl5EJLRvhuAdwumKb51PtgjuEanCQxo9sHvpcPadMQSLOG7vEhnzzUc5bmFcvk3q8wdbc= X-Received: by 2002:a1f:3250:: with SMTP id y77mr1224653vky.20.1616589089036; Wed, 24 Mar 2021 05:31:29 -0700 (PDT) MIME-Version: 1.0 References: <1614957330-9469-1-git-send-email-churchill.khangar@intel.com> <1616588553-47065-1-git-send-email-churchill.khangar@intel.com> In-Reply-To: <1616588553-47065-1-git-send-email-churchill.khangar@intel.com> From: David Marchand Date: Wed, 24 Mar 2021 13:31:17 +0100 Message-ID: To: Churchill Khangar Cc: dev , Cristian Dumitrescu , "P, Venkata Suresh Kumar" , Yogesh Jangra Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [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" On Wed, Mar 24, 2021 at 1:20 PM Churchill Khangar 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 > 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)) 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