From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id B1753B3CD for ; Mon, 1 Sep 2014 12:20:39 +0200 (CEST) Received: by mail-wg0-f49.google.com with SMTP id y10so5215417wgg.32 for ; Mon, 01 Sep 2014 03:25:06 -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=K3NGOHm3xKkp/BC4B0ydb8GwTryaVuPwdDcNIySc3sQ=; b=fqbf2nDD3dyjbbO0ctxhomIzRb0ej9hr72aauwG9n6qGrg8u/rVvkBGHKk6QDYgOP4 AlO6UncM+aOJD7SCiL5YdpDdK4ukIBVKNnGJkM9fnmRIO+JqzFfBfAN5dqzyGz4m3Xn4 +EholuhudwcHNN1Zruz6Wr8frzuLhlL6CviyXYKLLxqp1nmPmQMl7wYseTRu2VTHNKNW PD+2ZwmNrYwG94t0Pw3/C3tqFk94OaM2oUHUXy9NnfdIIkhHZHaOTAOOl7+xraEQqvuu r6leKohSsPcYp0FYBkg8wiINQTv5vWZsvNKSGEkeMeShxglwgkdIwhrMHnZo8mr+z39v ualg== X-Gm-Message-State: ALoCoQmmuVX6/H+Qb+8MSz7lTos6I3eUEjIebs8xPXZKWvQ2/x6lW1MuISdMSpJ39yteHyu8vttd X-Received: by 10.194.90.114 with SMTP id bv18mr31728184wjb.63.1409567106639; Mon, 01 Sep 2014 03:25:06 -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.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Sep 2014 03:25:06 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 1 Sep 2014 12:24:33 +0200 Message-Id: <1409567080-27083-11-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 10/17] i40e: 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:39 -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_i40e/i40e_logs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_i40e/i40e_logs.h b/lib/librte_pmd_i40e/i40e_logs.h index 043ecba..399867f 100644 --- a/lib/librte_pmd_i40e/i40e_logs.h +++ b/lib/librte_pmd_i40e/i40e_logs.h @@ -34,12 +34,13 @@ #ifndef _I40E_LOGS_H_ #define _I40E_LOGS_H_ -#ifdef RTE_LIBRTE_I40E_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_I40E_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