[v5,0/4] log level enhancements
Message ID | 20210405193000.1113542-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 5C782A0A02; Mon, 5 Apr 2021 21:30:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF47E4068C; Mon, 5 Apr 2021 21:30:09 +0200 (CEST) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mails.dpdk.org (Postfix) with ESMTP id 5CD2D4014E for <dev@dpdk.org>; Mon, 5 Apr 2021 21:30:08 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id DA1851A6E; Mon, 5 Apr 2021 15:30:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 05 Apr 2021 15:30:07 -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=mI7VbUlA5GxBk Bek/la8tjWxriqjLc0Hb+r2box1+bU=; b=Ni2FeTkIfrQy4Uq2dUt2Np9cci6uA +MSgCKSbi8Q+M+O6UH+Rrt+NhPvzTRuNXZ4+R/Bb7vZLJX/bH4Fg5QAmDQjFqxQ1 +NB33plRgFr9vQFUFVFmAjcf4K8B6PkX3HX1wJxp2BvGULvTFcQQazsDbcuHNmiZ mwIxEht3AxnMEuP2Uk11Kg70KRPXduZxxMcLo4+U8rBhT84MDrjwjrPpDPXDFEjn ePUGKIeBjZFXFJ8I0iDyt/PKmjarR5fznRhF8cWn+TldERnznLgtWAKH8no8LbHB vH7UBXMNRa8dlQ70lvuwX8WMaP0YYZ75snUpYEmkT6qRLxQ1W/l/DT6kg== 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=mI7VbUlA5GxBkBek/la8tjWxriqjLc0Hb+r2box1+bU=; b=T4um+PTj Byeg+O3VdSb4mrNKJLQwND9S9vWsJHSGtQdaWF1/nqc6pk4pSWGkW5Ma05g2IoTa BwFAM3UFqWPEVyYRZqYeemj8jzX6ALVdFJdER7BFhu4S5QFPCm1Bg0DzRKKzEiYV S3ZLv8J/STP5JrD1evWQGAlZWNJr/BlqTSCp26mSyYPC4xTDsPZLv8quVyUS3w9M lZvHA0DugXZjgDdY3BBd+zX6oD0eyvpeAnW33/ATOHA9I0picdnH4LkudVfGaHnc /8kFg9QxCuz1aSLUoVEsblrCur4Uw2HI5djO+m5KU42xipkKUKAjqO1v6S0g44cJ RAngTNc7eNZ0Kw== X-ME-Sender: <xms:PWVrYFRgcy6vaJ8HGp5Ivgts8PcqyXYM4_4pcvilzYQpXQTCYOkVmw> <xme:PWVrYOyXEV1R9Io2stYhwMwAsbabXuj_YaTR6HZtQOZ1olIGVIEwsZec8WJGwYn6U 9AhpI5aKL6ELQEKTw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejvddgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghs sehmohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepvdehgfeivdejgedtve ehfefhteelfefgieevgfffveefjeegtdfguedthedtgeevnecukfhppeejjedrudefgedr vddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: <xmx:PWVrYK0P7BtbtyeJgCKbJyVbWXQWb3X2EeDM08y1GyQfT-7vq8dWHw> <xmx:PWVrYNCG97f5lZiH6dB_AV5KZDhwgsOGfR1ZxeLIbwgYaLVBgJIRLA> <xmx:PWVrYOgKh5slWEyVVEgXp3MIpjI-94lFNvFdgy0w47bhdpVxJQQ-hg> <xmx:PmVrYEdcgOU5rIbmk0kVIeFmAKJBMjxSF6HycTqIT2CF_MCYRQl1lA> Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 4872D240054; Mon, 5 Apr 2021 15:30:04 -0400 (EDT) From: Thomas Monjalon <thomas@monjalon.net> To: dev@dpdk.org Cc: david.marchand@redhat.com Date: Mon, 5 Apr 2021 21:29:56 +0200 Message-Id: <20210405193000.1113542-1-thomas@monjalon.net> X-Mailer: git-send-email 2.31.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 v5 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> |
Message
Thomas Monjalon
April 5, 2021, 7:29 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. 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 | 87 ++++++++++++++++------ 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, 162 insertions(+), 75 deletions(-) create mode 100644 lib/librte_eal/common/eal_log.h