From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by dpdk.org (Postfix) with ESMTP id E0E2FB39A for ; Mon, 1 Sep 2014 12:20:47 +0200 (CEST) Received: by mail-we0-f179.google.com with SMTP id t60so5210639wes.10 for ; Mon, 01 Sep 2014 03:25:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=E1Z2/FUrW+os+D0q1EUJcaUfnFdLyK8nTA5YIU4uQbc=; b=AlfZBy88J2DILCfQuOQWIRe7p44mvp8gjbwyc912SBH8oSHT3YvyjiAWTW704fhuQH g3/OvTaz/1CzKYilX9MIoRhJDBjMmSrYyI8ogLTJKpTcYVdYEsaNmoc3Z4s6a5JKRm8a 8qyT/O+LCxx+W1+LKmfDIwZJFwgLE7cSGsNXQFITgnLqquuZCNtRhxy427dVyEJ4pN2o ejeGJHUrgXv9Jz5dUjIFlLp8hePcimn0HauuuPtNhkCS0kJ/j83rPNXjWUjCP0Lcalrw /lDAw8ph5/Igqm/EWO0/Vgjr8Dss67kY9M17MTcbESDEWWEz5Y9f4AMbVww8hIxzYOds TuHQ== X-Gm-Message-State: ALoCoQnjf5yFh+SSKt2kLDeK6Rurqg1I6D1kN+mW6ioO2+RtgByZAGeVS9WgdSdYsbKoLKEbhxTE X-Received: by 10.194.6.195 with SMTP id d3mr2007064wja.107.1409567114837; Mon, 01 Sep 2014 03:25:14 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id lm18sm24287018wic.22.2014.09.01.03.25.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Sep 2014 03:25:14 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 1 Sep 2014 12:24:38 +0200 Message-Id: <1409567080-27083-16-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409567080-27083-1-git-send-email-david.marchand@6wind.com> References: <1409567080-27083-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH v2 15/17] e1000: always log init messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2014 10:20:48 -0000 'init' messages should always be logged and filtered at runtime by rte_log. All the more so as these messages are not in the datapath. Signed-off-by: David Marchand --- lib/librte_pmd_e1000/e1000_logs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_e1000/e1000_logs.h b/lib/librte_pmd_e1000/e1000_logs.h index 4dd7208..4a92804 100644 --- a/lib/librte_pmd_e1000/e1000_logs.h +++ b/lib/librte_pmd_e1000/e1000_logs.h @@ -34,12 +34,13 @@ #ifndef _E1000_LOGS_H_ #define _E1000_LOGS_H_ -#ifdef RTE_LIBRTE_E1000_DEBUG_INIT #define PMD_INIT_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \ + "PMD: %s(): " fmt "\n", __func__, ##args) + +#ifdef RTE_LIBRTE_E1000_DEBUG_INIT #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") #else -#define PMD_INIT_LOG(level, fmt, args...) do { } while (0) #define PMD_INIT_FUNC_TRACE() do { } while (0) #endif -- 1.7.10.4