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 953B1436E3; Wed, 13 Dec 2023 17:39:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2373F42E9D; Wed, 13 Dec 2023 17:38:38 +0100 (CET) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id A161840E03 for ; Wed, 13 Dec 2023 17:38:36 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1d0aaa979f0so41819425ad.0 for ; Wed, 13 Dec 2023 08:38:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485516; x=1703090316; 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=ZJaRP3fCp+tUoUY+2uYtQzC9iRlKr6Usvyn8+6OKraI=; b=nkWUV9uiTXvOd9LnDOePMwSHxYj+mOSFfO39kOyJ8e6sXbknmPPvZcoW5CICzHZK9b CIAww88RMllcGItrOjescuLWjbN39fggiSJi6YM7A2bxhMT8BB9R+eOUW8Ed6/7pjIz9 5EgUafgO6fquwDl6ewCp6OE7CB+6tQLy2g962hO4V7CjX6dWTGrVCw/ikIWLanJolUR2 LJbdmkI/tGS0HHViO5RAieBc0zJ+jShaB6N4cGDh+fDEFMsFxQP97HOfrhEfzjVRIEC9 6TT5pFApprwN46MiRNiDuF80omUrV4g1mOeq70QpbtrsAGAdwHqsX7dAUlBgfcL3d9EI eatQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485516; x=1703090316; 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=ZJaRP3fCp+tUoUY+2uYtQzC9iRlKr6Usvyn8+6OKraI=; b=UEnWKbIFi7jEkAvKy7HfEKAGkTE4eYLzqnHjxLOWSAC8Ea8wbGdxYA28mTEPfaSKRE Tx1F4OmPBjq/xcXMIoRytr3Cxaf4xs6Nk2Rb6XXBGmnPGkjSeJqUg0N+xIWCdM8JsDo2 RtyK561WQJDd/bwn082a2mT7Tcma05rfNezbvLpe84qwE3xb5u3Na0iHY2aeQ2uchruh kgtoXfR/hZlUJFM007YLSzgkJATckD19SqFeDyQylTHLYzYGlgGVWFJ3zZiryALrv9Vw 3dKmENMgADX+wvO9LnEVxxbgsZnz4sAMHNlWr8LguOoS1qfNa+VqJi0ilEm3uymU79eQ SMEA== X-Gm-Message-State: AOJu0YwSJdztmxS9vcqIU9iuRmnOAVPCTzDCv5qh5+ERk0g1jWkceZjO wFfVS5RZCia35ee6QKDTlACkEQfKYb1Io8xKMoM= X-Google-Smtp-Source: AGHT+IG1KnaXDUE1FDEFa7P779FYwJ3d4uZe1fFGXntHPERwS+/2WHo4NxEvTIuKBAem5nQJTcxItQ== X-Received: by 2002:a17:902:e543:b0:1d0:6ffd:adfe with SMTP id n3-20020a170902e54300b001d06ffdadfemr4810632plf.101.1702485515765; Wed, 13 Dec 2023 08:38:35 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id 4-20020a170902c24400b001d0a6f31519sm10749593plg.188.2023.12.13.08.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:38:34 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Steven Webster , Matt Peters Subject: [PATCH v3 04/37] net/avp: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:38 -0800 Message-ID: <20231213163820.894987-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231213163820.894987-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231213163820.894987-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.43.0