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 318E1436D8; Wed, 13 Dec 2023 02:45:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 379CB42E9F; Wed, 13 Dec 2023 02:44:26 +0100 (CET) Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) by mails.dpdk.org (Postfix) with ESMTP id 100C842E71 for ; Wed, 13 Dec 2023 02:44:20 +0100 (CET) Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-3b9ef61b6b8so3766350b6e.3 for ; Tue, 12 Dec 2023 17:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702431859; x=1703036659; 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=X0e8j60ROAUUfAbe0fLtkT3/JIegheWQ8+3LNiHReVk=; b=Ic5zKvfA2wKxv1Mo4wi7zMh+I1tBmnrKSJwzAoCMj+MqHWNJucnijjzW+Efj+vMLLS 4QHIPoCbaUN/o/5xo82iAHP4OHtqzICNZo5bpmU6HTpmWK2Fs9GOaiA6v/UKQpzQtIQm uBq2yOAn4uTUq+I4J0OXohgcjRpPXpKpSrsyv38ZLD6H1vUEjzrFccS4n4G3KroLY4uC tjVgT37UNXlHOeDZBQkJriojCaeAAmkWX8dM3FmMHN3oXPyci6nG9pU7U1px4kUzfSvS PFMenXhXgdn9hB68HE4Y7izpyqsOzkeypq4gkqPmD8PxT8L5C14ZYWKfiDx94Afkc7J9 5hlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702431859; x=1703036659; 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=X0e8j60ROAUUfAbe0fLtkT3/JIegheWQ8+3LNiHReVk=; b=rzQb/FhNXE4TN+V4PH2TNf01HecCR7fzkNrY8eoSGxN7nw38VUB146QuXB5Ui5wCRt 0fD3LhZ0m+Lgrh7/jRbWESo7wYp/5yk36UNr5pX5WwpFKt5XENGq9IjXdmYmkJNFPoYT 4Q6lrRMXOmKklqVU0awVZCp+Tt3t6SdonneZdw9QOmwhvMaZBbVhqVyXbfPU7ubY7DXl HiKKsCmI68i3k7EBurxu5AbX1eSsQ8MlqiFA8Nhc6yfKzIyyDhEQZh41OXomt5BIFBhu FNhs5+AuPIJWxakGj2l1dQf9wGp0uPlWS9IdcFcAy0OLhYDKzW29ebjR6T8ot2KRUyyn /etA== X-Gm-Message-State: AOJu0YzRGEhsEKUrsJInZfJya0UFQGV66InGrhjxwa45s8dItqfg+AQf 2ECoTTPtIbd40Zi6e+jyosKlk8sWrCbKZe5Tq+RB0Q== X-Google-Smtp-Source: AGHT+IGVjNQqekqXJTRCgaC53qmxHJ2tYtphsQv9jhb7ar/iSACvF7BBhssYEcSEhW+JpoykvspHsg== X-Received: by 2002:a05:6808:2390:b0:3b5:6432:e0eb with SMTP id bp16-20020a056808239000b003b56432e0ebmr8807136oib.38.1702431859375; Tue, 12 Dec 2023 17:44:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:44:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Junfeng Guo , Simei Su Subject: [PATCH 10/26] net/igc: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:26 -0800 Message-ID: <20231213014408.612051-11-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/igc/igc_logs.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/igc/igc_logs.h b/drivers/net/igc/igc_logs.h index 11071a32b542..ffa1981bae32 100644 --- a/drivers/net/igc/igc_logs.h +++ b/drivers/net/igc/igc_logs.h @@ -21,15 +21,17 @@ extern int igc_logtype_driver; #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") #ifdef RTE_ETHDEV_DEBUG_RX -#define PMD_RX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#define PMD_RX_LOG(level, fmt, args...) \ + rte_log(RTE_LOG_ ## level, igc_logtype_driver, \ + "%s(): " fmt "\n", __func__, ## args) #else #define PMD_RX_LOG(level, fmt, args...) do { } while (0) #endif #ifdef RTE_ETHDEV_DEBUG_TX -#define PMD_TX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#define PMD_TX_LOG(level, fmt, args...) \ + rte_log(RTE_LOG_ ## level, igc_logtype_driver, \ + "%s(): " fmt "\n", __func__, ## args) #else #define PMD_TX_LOG(level, fmt, args...) do { } while (0) #endif -- 2.42.0