From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id A6113A0567;
	Wed, 10 Mar 2021 14:28:34 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 835484068C;
	Wed, 10 Mar 2021 14:28:34 +0100 (CET)
Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com
 [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id 3BF0840687
 for <dev@dpdk.org>; Wed, 10 Mar 2021 14:28:33 +0100 (CET)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42])
 by mailout.west.internal (Postfix) with ESMTP id ED9F01994;
 Wed, 10 Mar 2021 08:28:31 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162])
 by compute2.internal (MEProxy); Wed, 10 Mar 2021 08:28:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding; s=fm3; bh=vYi2eghnppe6B
 V2dKb2dso1JI3P7YjqWmtMa5cXRe8M=; b=fp/W3zoPeMNjdDcaBdcX083yjTkca
 Dvd69AftJMdaavXqL7TKe1EHg0sU6Y/RbKz8QE1k+d3pW3d8s1iBvnPq3E38Wcfk
 fat5t/PDKFlz8t0vZvzc5/nV4X62TtWDS58xokt9DksggdoOSdnvx72OVGYuD18F
 Q8PtZwrlwBzX4KZ9XKVXRm4fvjZbIeCTMaKDFCoLCYUFYry5DWJJ6DWEsaiQdexQ
 NKY/d/vZ8saHTPqMoRkEN4T7VHls3WllqulgsCryWJqNeVoqVUPNkjLfp7dmpIvL
 /4lkd79FilcbFGAy3hYDsPzJE1hyY9N6OZNZCEy+Wazvz6WadkICfXqIw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:date:from
 :in-reply-to:message-id:mime-version:references:subject:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm2; bh=vYi2eghnppe6BV2dKb2dso1JI3P7YjqWmtMa5cXRe8M=; b=UrPcJzfP
 E/AmDEemUf/uvXXGC9x0cw9t5Zclnx8MwXqTVgds3lxZyrT1/8+PmoZOv7i6TZn8
 rNqXNv5FlXnpyx8U94Oi8fkLOPAtrpbq9Lo0zAFVch+NFtkmgWct3Dk77PEpca5N
 vSiUEV/ZDXUDY5vmAtylx4v0PlcdOKavRmcQZc+G5FKcmyOjnjRG8CTZrVsZKb6C
 48P+oZN+mAPe3dxZBWEzxS5zJI77pvxYjqRzGytWPLJdJJSDMYKP+c76r3ACuQEx
 hNBgmoYtyugECnJGAqTZbBznxSwjl6F4mW1iS3uYdUotrt98wJxrmCDOVElDPMd6
 9PAPxoCwH+EupA==
X-ME-Sender: <xms:f8lIYEgerNmrzLVZkLUyjku0YyDZq4NUP162WxiV4RpH_wyoKTIAPg>
 <xme:f8lIYNCw0_NerDUvgf9oJerLfacLr5K7PYzpQf28e3PoK2JSEWNEDhTEy0JYNEeP8
 qLPbLepcxurw23Hkw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddukedgheefucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre
 dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes
 mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe
 efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv
 tdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh
 homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth
X-ME-Proxy: <xmx:f8lIYMGAHVkQfW39dXY3v2i89g2WI-55ZcwEAnsIQss6ZQWRB9fl7Q>
 <xmx:f8lIYFSkDMh_W1Aj3oVMSd7teFD48vQjkkNgTbT6XKgwYuDWYsYC9g>
 <xmx:f8lIYBw0uRpitovdGZAkYR5lnaAH1nij4Ev9m3CnGHY90cQPgxUxCQ>
 <xmx:f8lIYKst7xYVJtwngrJISeZxFgRGO6V4iBZV7oKUgH27_szk3HauIA>
Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id E73B2240069;
 Wed, 10 Mar 2021 08:28:30 -0500 (EST)
From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Cc: david.marchand@redhat.com
Date: Wed, 10 Mar 2021 14:28:14 +0100
Message-Id: <20210310132825.2627851-1-thomas@monjalon.net>
X-Mailer: git-send-email 2.30.1
In-Reply-To: <20210309233116.1934666-1-thomas@monjalon.net>
References: <20210309233116.1934666-1-thomas@monjalon.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v2 00/11] improve options help
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

The main intent of this series is to provide a nice help
for the --log-level option.
More patches are added to improve options help in general.


v2:
    - fix use of the new macro RTE_LOG_MAX in level parsing
    - improve parameters type and name while moving functions


Thomas Monjalon (11):
  eal: explain argv behaviour during init
  eal: improve options usage text
  eal: use macros for help option
  eal: move private log functions
  eal: introduce maximum log level macro
  eal: catch invalid log level number
  eal: add log level help
  app: fix exit messages
  app: hook in EAL usage help
  app/regex: fix usage text
  app/testpmd: fix usage text

 app/pdump/main.c                              |  2 +
 app/proc-info/main.c                          |  2 +
 app/test-acl/main.c                           |  2 +
 app/test-bbdev/main.c                         |  3 +-
 app/test-compress-perf/comp_perf_options.h    |  2 +
 .../comp_perf_options_parse.c                 | 10 +--
 app/test-compress-perf/main.c                 |  3 +-
 app/test-crypto-perf/cperf_options.h          |  2 +
 app/test-crypto-perf/cperf_options_parsing.c  | 10 +--
 app/test-crypto-perf/main.c                   |  3 +-
 app/test-fib/main.c                           |  8 +++
 app/test-flow-perf/main.c                     | 63 +++++++++---------
 app/test-pmd/parameters.c                     | 34 ++--------
 app/test-pmd/testpmd.c                        |  2 +
 app/test-pmd/testpmd.h                        |  1 +
 app/test-regex/main.c                         | 10 +--
 app/test-sad/main.c                           |  7 ++
 lib/librte_eal/common/eal_common_log.c        | 50 +++++++++-----
 lib/librte_eal/common/eal_common_options.c    | 66 ++++++++++++-------
 lib/librte_eal/common/eal_log.h               | 32 +++++++++
 lib/librte_eal/common/eal_private.h           | 29 --------
 lib/librte_eal/freebsd/eal.c                  | 10 +--
 lib/librte_eal/include/rte_eal.h              |  2 +
 lib/librte_eal/include/rte_log.h              | 12 ++++
 lib/librte_eal/linux/eal.c                    | 17 ++---
 lib/librte_eal/linux/eal_log.c                |  4 +-
 lib/librte_eal/version.map                    |  3 +
 lib/librte_eal/windows/eal.c                  | 15 ++---
 lib/librte_eal/windows/eal_log.c              |  6 +-
 29 files changed, 237 insertions(+), 173 deletions(-)
 create mode 100644 lib/librte_eal/common/eal_log.h

-- 
2.30.1