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 6C0ABA0579; Thu, 8 Apr 2021 18:47:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4DC4014114C; Thu, 8 Apr 2021 18:47:18 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id D77244068B for ; Thu, 8 Apr 2021 18:47:16 +0200 (CEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 877D85C0089; Thu, 8 Apr 2021 12:47:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 08 Apr 2021 12:47:16 -0400 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=wJPnJjakWlP7n rlL/FoRCpNCiwRhPd0yK93E5Sy/g18=; b=jH7Cn/MGnqqVnvrxyMR8CH+1Wcx74 wCj60ZPw2jKzhEmrAE0mUOPxNOvUW0McNPPqMskF3rWlWuBnMYKaCOZ0PkF9q+Fx YJGkbokw3LAScFx9X4h9wNOHPVRfx0bT7gIjmrG9bRsRPayxzJQ2u0qmpy86tpsk SK8sH/dLA/ElFSpqecf5r1eVWXohLoSKxJixzsTYeFB9f4IFR65e1ixfx4gorcdN Q6s3bC/m5qIzc7zDQTL8Uc8lBmLEdKYvhJFRcBaVKVDF49xp810Cm46RK2lMnhzt UAuIv/YchMnDTlSmq88fyadLVIor1G1f+6buPYnQCciGrN2Ubzug8nByg== 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=wJPnJjakWlP7nrlL/FoRCpNCiwRhPd0yK93E5Sy/g18=; b=JcfK3mM6 9L6S2WLZxb1bku1ZwzMiYnZQTMGygmkcbhIES2JPr4hVFX4539FXWOl54cyfWimB QelJ0ZU0HCxO6oWuV8RnrmY6v9/TyXxuBsdIFTO/kzmUf910g1VKFJlwKt0ZOtC+ MrNcuv2HCH4RczWqXSvNImncx8y1dyO8cESOHnWt/obdZUX7D+0GQcLzOZo8KASW ozZhOG01Y7Jx7621B7D1iDbcmPENRSMCW9Vpynw7+RYJo+nCKmc2dg+QQlDyw5A9 wIOUkjKBGicBYUoGjsg3heknIs8NBhaFMaU+U5m3gziPuEOoJzESLHQCemuKIfAZ fye/eShm6nWlrg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejledguddtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghs sehmohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepvdehgfeivdejgedtve ehfefhteelfefgieevgfffveefjeegtdfguedthedtgeevnecukfhppeejjedrudefgedr vddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 023FA1080054; Thu, 8 Apr 2021 12:47:15 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com Date: Thu, 8 Apr 2021 18:47:09 +0200 Message-Id: <20210408164713.3455145-1-thomas@monjalon.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210405193000.1113542-1-thomas@monjalon.net> References: <20210405193000.1113542-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v7 0/4] log level enhancements 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 series is a part of a bigger one split after v4: "improve options help" The main intent of this series is to provide a nice help for the --log-level option. v7: - free sorted array of log types v6: - fix commit log v5: - rename more private functions - sort log types when printing help Thomas Monjalon (4): log: move private functions log: introduce macro for maximum level log: catch invalid level option number log: add option argument help lib/librte_eal/common/eal_common_log.c | 90 ++++++++++++++++------ lib/librte_eal/common/eal_common_options.c | 60 ++++++++++----- lib/librte_eal/common/eal_log.h | 32 ++++++++ lib/librte_eal/common/eal_private.h | 29 ------- lib/librte_eal/include/rte_log.h | 12 +++ lib/librte_eal/linux/eal.c | 3 +- lib/librte_eal/linux/eal_log.c | 4 +- lib/librte_eal/version.map | 1 + lib/librte_eal/windows/eal.c | 3 +- lib/librte_eal/windows/eal_log.c | 6 +- 10 files changed, 165 insertions(+), 75 deletions(-) create mode 100644 lib/librte_eal/common/eal_log.h -- 2.31.1