From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] log: do not drop debug logs at compile time Date: Mon, 05 Dec 2016 15:08:55 +0100 Message-ID: <4058102.qjHpyqyoUp@xps13> References: <1474011832-29987-1-git-send-email-olivier.matz@6wind.com> <1479915265-17547-1-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: david.marchand@6wind.com, dev@dpdk.org, keith.wiles@intel.com To: Olivier Matz Return-path: Received: from mail-wj0-f181.google.com (mail-wj0-f181.google.com [209.85.210.181]) by dpdk.org (Postfix) with ESMTP id 6A703377C for ; Mon, 5 Dec 2016 15:08:57 +0100 (CET) Received: by mail-wj0-f181.google.com with SMTP id v7so291372570wjy.2 for ; Mon, 05 Dec 2016 06:08:57 -0800 (PST) In-Reply-To: <1479915265-17547-1-git-send-email-olivier.matz@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-11-23 16:34, Olivier Matz: > Today, all logs whose level is lower than INFO are dropped at > compile-time. This prevents from enabling debug logs at runtime using > --log-level=8. > > The rationale was to remove debug logs from the data path at > compile-time, avoiding a test at run-time. > > This patch changes the behavior of RTE_LOG() to avoid the compile-time > optimization, and introduces the RTE_LOG_DP() macro that has the same > behavior than the previous RTE_LOG(), for the rare cases where debug > logs are in the data path. > > So it is now possible to enable debug logs at run-time by just > specifying --log-level=8. Some drivers still have special compile-time > options to enable more debug log. Maintainers may consider to > remove/reduce them. > > Signed-off-by: Olivier Matz Applied, thanks