From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.mhcomputing.net (master.mhcomputing.net [74.208.228.170]) by dpdk.org (Postfix) with ESMTP id CA727937E for ; Fri, 13 Nov 2015 06:50:30 +0100 (CET) Received: from sdn-sensor.attlocal.net (99-34-229-174.lightspeed.sntcca.sbcglobal.net [99.34.229.174]) by mail.mhcomputing.net (Postfix) with ESMTPSA id 58A88D8; Fri, 13 Nov 2015 00:50:28 -0500 (EST) From: Matthew Hall To: dev@dpdk.org Date: Fri, 13 Nov 2015 05:50:02 +0000 Message-Id: <1447393802-25736-1-git-send-email-mhall@mhcomputing.net> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] rte_log.h: display level in logs from RTE_LOG 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: Fri, 13 Nov 2015 05:50:31 -0000 Signed-off-by: Matthew Hall --- lib/librte_eal/common/include/rte_log.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_eal/common/include/rte_log.h b/lib/librte_eal/common/include/rte_log.h index ede0dca..be961d0 100644 --- a/lib/librte_eal/common/include/rte_log.h +++ b/lib/librte_eal/common/include/rte_log.h @@ -297,10 +297,10 @@ int rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap) * - 0: Success. * - Negative on error. */ -#define RTE_LOG(l, t, ...) \ - (void)((RTE_LOG_ ## l <= RTE_LOG_LEVEL) ? \ - rte_log(RTE_LOG_ ## l, \ - RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__) : \ +#define RTE_LOG(l, t, ...) \ + (void)((RTE_LOG_ ## l <= RTE_LOG_LEVEL) ? \ + rte_log(RTE_LOG_ ## l, \ + RTE_LOGTYPE_ ## t, # t ": " #l ": " __VA_ARGS__) : \ 0) #ifdef __cplusplus -- 1.9.1