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 61BEF436D8; Wed, 13 Dec 2023 02:44:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CAC3042E7A; Wed, 13 Dec 2023 02:44:18 +0100 (CET) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 8433842E6E for ; Wed, 13 Dec 2023 02:44:15 +0100 (CET) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6ceb93fb381so4662074b3a.0 for ; Tue, 12 Dec 2023 17:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702431854; x=1703036654; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AvB85rPUvBz4MZ8Zxa6Fij3ohWEASPQ1wSN/8pCI2bg=; b=opEZJFvTqgCdLqpjsyyEBAZqAXlAIMB4tng3RcF7wpZ6yc3Dn8COWbl+Px2DyzZC4W KA5KzdzJ4L0MEZBhsNB2pkG8QoCxRUcEgwQVIfDQzIYmJ/0mTB8/PMZej/ZOxwbMrUq4 ZsRtTh8CjBZXYrECLgItDYppx7a5K/9RlLZ0TSJTVmr4xPr5NrXJ6tbVNrV0q0TSDXJa slAbslpGxUC3vwmBMtmyvKQe+d31gYWyGXS1dQHLm3oZCh9+ZhOA3EdoaBcag7OsxKdf JM1pIoK3jw0jFXVN4ECmICCDYmPdgDmVWQTOBGd1wUpLBpW0N+Ppt4tSzyil80/QRNvq Rc8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702431854; x=1703036654; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AvB85rPUvBz4MZ8Zxa6Fij3ohWEASPQ1wSN/8pCI2bg=; b=s8lPs3jR746Pnv+2vuRIkG31UF7D6UQis+GPwxpi1ri2v3B6P7oMFRX8cwRxNJgP72 VOBRBrXHkRW/obof0wmNCpYoI3JhNvF8KnjsXm4KvrR1Reh5tVZzSNsE8X8wcvSzWOqU QgcBdu3cuMUZl6iaU71Rr8xH/O+3PcudHYipUl1fpcuTdexQXwUNcYUbikFWLBBl2WJV XqrjIkvEz2tVuJKOeXCqAsrQP2jJcI539LMhV+xnCvgHjIAK2WBDqEqOSN/UNM1n1gha TIEZvcBL8AOtHpy2mgDxhtZgmVuA1pkjUPKvrFOYc14NyitHfoXv/jaHm57UduAurYQ0 5QRg== X-Gm-Message-State: AOJu0YzdtdJAWooPKmoww6onUtw07d0PuBJHv9q9yaSt40BNApzUpa1v BUf/4PI1GELZLK99jY0BjPGrkW8ge0OCDzTQd2MKFA== X-Google-Smtp-Source: AGHT+IEfI5CSYsXU76KZcHZWWGA/uIl/+pbX3dI7osUV3Zdpuk7I+AAk2IcpRilDRWWmkcBYbe6Ryw== X-Received: by 2002:a05:6a00:2301:b0:6c3:4bf2:7486 with SMTP id h1-20020a056a00230100b006c34bf27486mr9499324pfh.7.1702431854423; Tue, 12 Dec 2023 17:44:14 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id f7-20020aa79d87000000b006ce5b4ade28sm8988375pfq.174.2023.12.12.17.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:44:14 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Steven Webster , Matt Peters Subject: [PATCH 04/26] net/avp: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:20 -0800 Message-ID: <20231213014408.612051-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213014408.612051-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Want datapath logs to use own logtype. Signed-off-by: Stephen Hemminger --- drivers/net/avp/avp_logs.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/net/avp/avp_logs.h b/drivers/net/avp/avp_logs.h index 6e297c7a4a81..0ae95a7685c5 100644 --- a/drivers/net/avp/avp_logs.h +++ b/drivers/net/avp/avp_logs.h @@ -7,24 +7,26 @@ #include + +extern int avp_logtype_driver; + +#define PMD_DRV_LOG(level, fmt, args...) \ + rte_log(RTE_LOG_ ## level, avp_logtype_driver, \ + "%s(): " fmt, __func__, ## args) + #ifdef RTE_LIBRTE_AVP_DEBUG_RX #define PMD_RX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s() rx: " fmt, __func__, ## args) + rte_log(RTE_LOG_ ## level, avp_logtype_driver, \ + "%s() rx: " fmt, __func__, ## args) #else #define PMD_RX_LOG(level, fmt, args...) do { } while (0) #endif #ifdef RTE_LIBRTE_AVP_DEBUG_TX #define PMD_TX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s() tx: " fmt, __func__, ## args) + rte_log(RTE_LOG_ ## level, avp_logtype_driver, \ + "%s() tx: " fmt, __func__, ## args) #else #define PMD_TX_LOG(level, fmt, args...) do { } while (0) #endif - -extern int avp_logtype_driver; - -#define PMD_DRV_LOG(level, fmt, args...) \ - rte_log(RTE_LOG_ ## level, avp_logtype_driver, \ - "%s(): " fmt, __func__, ## args) - #endif /* _AVP_LOGS_H_ */ -- 2.42.0