Message ID | 20210408164713.3455145-1-thomas@monjalon.net (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 <dev@dpdk.org>; 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: <xms:lDNvYPwmbxJ7PccywoxDZyUj1FyVfaoldoVkW3gs3eQLAEJ2aPkJhg> <xme:lDNvYOv4e-Aku1QhuwyHoPe6sN9YPkmmlVY-rP-6ttgZjAbi9YLC2lNYXJJ76cHe6 vSQAJjibEe2jwc21Q> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejledguddtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghs sehmohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepvdehgfeivdejgedtve ehfefhteelfefgieevgfffveefjeegtdfguedthedtgeevnecukfhppeejjedrudefgedr vddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: <xmx:lDNvYGsmjm2HRdXTND4mC2WpUs25ioas88Y9xyDGTSmPkq5nOK2djg> <xmx:lDNvYDMBeXnTYDpefUzL8m7nshRuLM_OG2nKOvd5-ayI7JrKYmXD3g> <xmx:lDNvYE3Q_i5Vrz0DfE7t-jVUhRTyrt5-VciP93V_8JpOeGEn-jtlTg> <xmx:lDNvYMv8UD--AiA5i8u0s3uoHcpKacKgtahLEqhIVdpip5T95ZcD8A> 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 <thomas@monjalon.net> 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 <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> |
Series | log level enhancements | |
Message
Thomas Monjalon
April 8, 2021, 4:47 p.m. UTC
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
Comments
On Thu, Apr 8, 2021 at 6:47 PM Thomas Monjalon <thomas@monjalon.net> wrote: > > 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. Series applied, thanks.