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 9AEFEA0567; Wed, 10 Mar 2021 13:46:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B70A4068C; Wed, 10 Mar 2021 13:46:29 +0100 (CET) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by mails.dpdk.org (Postfix) with ESMTP id D53E840687 for ; Wed, 10 Mar 2021 13:46:27 +0100 (CET) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 9512E1782; Wed, 10 Mar 2021 07:46:26 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 10 Mar 2021 07:46:26 -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:content-type; s=fm3; bh= qDkRSv5Y01KTxmNhjzPbjTdoaU7F2KSaN8Gh2DE49CM=; b=O1OvWTHlDO1e0UY7 XNWqOGN8Dhcvm7U3fkWIQp299kXHyVaAiIEdIxGyXG0cjFS81q7lYCoHgcIScjYy 8yiRzO1KzzUBs2iwp6YpSVAoPm5YSCfEzq27AU0qynOamJsqfZW5LITh3Z36q51E vz5oRFxgumyX0fL+tuotxQYBvR6+QWiHPLWNN1sr3dvkVFgn5Hrnerdlg+0hCzmq L4mGf8u54qcQIZw08xoJmXM/CcqMRf4AxKOUghmaR9Y3fMDbmgsrL/qDLXQs7CST pX9wkR741e7oDXuqD688R2dMvv+bbMWqXrxCBJvrJbfS2/yPgVL+ZvDnkZ77U1dK h54dXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=qDkRSv5Y01KTxmNhjzPbjTdoaU7F2KSaN8Gh2DE49 CM=; b=eN+XfNSsbDQSdWDEqkJ0g+l32RHHeu6bl5bKOXUfsqVKOknAtW4+9mDe/ thxgqchElYkdvRmII7osNAS7jJ+LikSlRwwI+ZQ0m1bZ0xs9uckxoEF6Iq4jsImp vuQ8Mzp+N5kKL5z3eR/kd7+I/4JR6CQL51RSOqwKvA1fiU2swVIGjvP+m41s0Laq 7pP6EUQyL3NXfPe6O5y2TqQoOwow4lNh8ig3+OF62BRRwk5dbGQIPAphbQYtu2M6 H8Ui0GW4HVWintilQ1oyPk4tsFgD/gojZlm/Y921CpiUuLj3mkHSV0QKcWlnsMBI m1o1tx8EnHMu2JJH5UP6CoJ4odbrg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddukedggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkjghfggfgtgesthfure dttddtvdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedugefgvdefudfftdefge elgffhueekgfffhfeujedtteeutdejueeiiedvffegheenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 888F3240067; Wed, 10 Mar 2021 07:46:25 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com Date: Wed, 10 Mar 2021 13:46:24 +0100 Message-ID: <2000325.8eESi9GnzJ@thomas> In-Reply-To: <20210309233116.1934666-6-thomas@monjalon.net> References: <20210309233116.1934666-1-thomas@monjalon.net> <20210309233116.1934666-6-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH 05/11] eal: introduce maximum log level macro 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" 10/03/2021 00:31, Thomas Monjalon: > --- a/lib/librte_eal/common/eal_common_options.c > +++ b/lib/librte_eal/common/eal_common_options.c > @@ -1249,7 +1249,7 @@ eal_parse_log_priority(const char *level) > return -1; > > /* look for named values, skip 0 which is not a valid level */ > - for (i = 1; i < RTE_DIM(levels); i++) { > + for (i = 1; i < RTE_LOG_MAX; i++) { Bug: it should be <=