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 B94A9A0546; Tue, 6 Apr 2021 15:11:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4414B406A2; Tue, 6 Apr 2021 15:11:46 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id DBE144067C for ; Tue, 6 Apr 2021 15:11:44 +0200 (CEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 673365C00CF; Tue, 6 Apr 2021 09:11:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 06 Apr 2021 09:11:44 -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=3JsG3BpuJrKXq faGyW5Zr4WYRz1zdh5abn6dmHVtcYA=; b=ZsulWnjWUDkBMr2h0OdMF1ByCUgMp qOKy0FLsT+yTRWODSr/aIfMWy44IdjxC7FARr7/0n+t9hXXOm1fpNzZKQK/Zaxk7 h6i5CLTGGkzRjCKjLwuW8+zDnpHhu9qevlz5ll8D9EOZv/xvHMHaUNXpBtKqrbSi 5/ThZJoEgU+sOnpAyfic2KOdhXpXxeZDOr+J14vcXTbXsEJJt01btSRroWZbTjsw TPp7TM5QlokhyCyT4otIqH05hqMgXBexEy4iabsBKoezC7jeoO5oMLEXq6yq3xOV 6XOwzxAhCXLHapIgo/qU1it4zXSRU/Htf1OTYqiFwxVZjTNQ9uFW6etbg== 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=3JsG3BpuJrKXqfaGyW5Zr4WYRz1zdh5abn6dmHVtcYA=; b=G1EU36qw TXl3EE3Fm2r0X8B2jv/is9W8UB27b4N2ndKvkIxQYSuz7K8JugN5USFEoOT6pHrc 1f3JszTOqzIEhO2Vt2EhUCAWpKBSKpKqAxoPVEKgZQkXA1csaT8N0pLeiDPwwcbQ +ZNydLPQG1eni+hKsX+4fKGz9nsXN3aqn2cyXGaF8EfGhl4kPkanivNQKdzfC718 ONdEm9slrYL02vOC56YFVEINYAlssZ1wLwRUI3Yius5HLsNvHrmfyPc4SXeCdBvz EB/xT4Lu40+3Oox7c+S7DHHDzYIgdjSDQH9kTDglY8kSNC5zBRrBFS52imlRonut YYgrkcqJB/yQaQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejhedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth 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 7949724005A; Tue, 6 Apr 2021 09:11:43 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com Date: Tue, 6 Apr 2021 15:11:33 +0200 Message-Id: <20210406131137.1732110-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 v6 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. 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 | 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 -- 2.31.1