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 AB501436E3; Wed, 13 Dec 2023 17:40:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 945F742EFE; Wed, 13 Dec 2023 17:40:09 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 56B0D4064C for ; Wed, 13 Dec 2023 17:40:07 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1d05199f34dso41056755ad.3 for ; Wed, 13 Dec 2023 08:40:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485606; x=1703090406; 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=iI6jEEynaN6L9m63UX7MdwvcC55IS4coLOmuaNgBEA0=; b=2rlniB5iBE2KliFqRVhe0rfYByHRpqW/AK3ZKQ374h/Gz1cBvrvSpMgbfT8K+AQ8cv dkpmaRqg7sX92XvGUPiT0+rpMghg6hXEOiIZrhU4GMEdzAOCJuRqKuHqvydKAcTywtWn 9D13BedI2t78Z/p/rhn2KTe0M10Br0aHDNuPT+F4xPEQBHP9sNWJndV9QRMvPxt6n5Ql r5nyYvG4G1kOh+HWsbEH5iE5dH6T5cadapqHSnnRjayRGWduLMI2lfz7svcNchEosAbc 2zyOLry8QmyXOg8Jp16gHsAEywWxeUeal5taMl5KEKpEsoHUpDzgEPjyzN5LEXxfrd74 t0Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485606; x=1703090406; 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=iI6jEEynaN6L9m63UX7MdwvcC55IS4coLOmuaNgBEA0=; b=xDLrhzVvMSVBESZ/ltw2q+BZw+iEdYk5EgmXUxjs2Q4AWAEJnzt4iLehidzG9KwaYd ZQNzSOKeW6JKdgi5WAQC4qP2NhPqLDRLDlyBmTt81dChbwtUIXJQcxJk0DZPxUsndXs8 0aEBqhweQP8Hl+kwf8jO8fxotuta1ZI7RQ9N0hFvs96fHtNnxjZ5b1hQbmhXGT3q+gUs XV3eHn713hFN2TUzQdoXx1Z8VTnIBdRgfrWcK/oLpVYu7L50twsmJZ5+aIspwbyAXmW9 PxGtaII02RDo+v1p4lKB6kjg0fFSjw1BOy2yzSDaV3GW14kZNY+J1htvvzQMwkdrJU2m Nt8Q== X-Gm-Message-State: AOJu0Yy/Yew0+RBI7yvgqHbwjHkEBmoDel5H3vORki/lSiuWtbCz2LbU wkqtw5w/D+h7YK/1plXtLbNBa6cEx3XZUjVZAH4= X-Google-Smtp-Source: AGHT+IEWvHt/TcKNSi3GCezLfADz4SD9t9R5q6BIXkS4QAwgwgsEaU03dfWAD2aU7v86HUl3+/nTGg== X-Received: by 2002:a17:903:2288:b0:1d0:1e49:3f60 with SMTP id b8-20020a170903228800b001d01e493f60mr4678748plh.27.1702485606598; Wed, 13 Dec 2023 08:40:06 -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.40.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:40:06 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Harman Kalra , Gagandeep Singh Subject: [PATCH v3 13/37] net/pfe: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:47 -0800 Message-ID: <20231213163820.894987-14-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/octeontx/octeontx_logs.h | 3 +-- drivers/net/pfe/pfe_logs.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/octeontx/octeontx_logs.h b/drivers/net/octeontx/octeontx_logs.h index dec8042c67ba..cec5346d5a8b 100644 --- a/drivers/net/octeontx/octeontx_logs.h +++ b/drivers/net/octeontx/octeontx_logs.h @@ -19,11 +19,10 @@ rte_log(RTE_LOG_ ## level, otx_net_logtype_mbox, \ "%s(): " fmt "\n", __func__, ## args) -#define octeontx_log_info(fmt, args...) \ - RTE_LOG(INFO, PMD, fmt "\n", ## args) #define octeontx_log_err(s, ...) PMD_INIT_LOG(ERR, s, ##__VA_ARGS__) #define octeontx_log_dbg(s, ...) PMD_DRV_LOG(DEBUG, s, ##__VA_ARGS__) +#define octeontx_log_info(s, ...) PMD_DRV_LOG(INFO, s, ##__VA_ARGS__) #define octeontx_mbox_log(s, ...) PMD_MBOX_LOG(DEBUG, s, ##__VA_ARGS__) #define PMD_RX_LOG PMD_DRV_LOG diff --git a/drivers/net/pfe/pfe_logs.h b/drivers/net/pfe/pfe_logs.h index 58d5e8e7cff1..306bfc22ea54 100644 --- a/drivers/net/pfe/pfe_logs.h +++ b/drivers/net/pfe/pfe_logs.h @@ -26,6 +26,6 @@ extern int pfe_logtype_pmd; /* DP Logs, toggled out at compile time if level lower than current level */ #define PFE_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_ ##level, pfe_logtype_pmd, fmt, ## args) #endif /* _PFE_LOGS_H_ */ -- 2.43.0