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 A3F75436D9; Wed, 13 Dec 2023 05:20:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5723342EE6; Wed, 13 Dec 2023 05:19:35 +0100 (CET) Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) by mails.dpdk.org (Postfix) with ESMTP id B4FB142EAA for ; Wed, 13 Dec 2023 05:19:29 +0100 (CET) Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-35d699ec3caso21157105ab.3 for ; Tue, 12 Dec 2023 20:19:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441169; x=1703045969; 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=Dnp7V4UL9J326ffosjBt1LG+x0LC92DyYO7GBMMN0qI=; b=ojUBC6hn2FDaNsSyj0lgvLP1RQOJqutUKxBi8d6qXRb/0CVK5o4Wejh1QMV9rYsb78 LJ3qIH6pbQCTBxdoE0fO+d/Quv0MhmXnUOpXX+OA8ix+AyquyglB4TEWf0rKmWLMcgF+ xC4Q7mLuWXEyjnvpn7mtv4QF6C5vS5wlnQaVzojitJPcM5Wc9Gs7YUHSLSzh5peqqlhv HgWXIPI0RcMfr5kQpGAS92b+vTBmxBovYCcIZxVmnndCPB23CIIQEZqpz93l+MsgllCX nzesnGvIV35bb5Wfqg4sIb7Zi9lwvndu2sgEKYlg//uky85w3u0WceySfsN/Y+600l4O xr4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441169; x=1703045969; 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=Dnp7V4UL9J326ffosjBt1LG+x0LC92DyYO7GBMMN0qI=; b=hE3Y6KsFDNqT78HRKrRKTOJaQodkMm7jw2be9B0+t4BnjUdqE9suWZ3jUmJMhIVMet IzfXcDZB1OG2Ozc52rmHcWHL0CdYF02GZO9oouUkWefBfltFqntIlZudzVlFlomNUd/m 9CL0ferhQRvfynHwlCt9wZ0DI4htP/9axt2AdemIwIHWslIEnJ1WzZZdMCcnNGRuc1TS pMttEPqU4RxfpmRQh1sNXVsQylPDsYgns5bJfJ8nII+EYuiqHHX93vlSEGM1BqrnBxzD chetq8SmoUa5zRVOxjB/nVLFR+LEKuUPWwKO221Mcp3wxF0JWk9WRFkVrwFL+TutxW1Q HY6Q== X-Gm-Message-State: AOJu0YxxaKNcx9n16JcwGGzzSOWaLxJYBtu027bXKQBKMsCzHo5+5f2g 2FsMQavmgVOLXjuB7fGS/xtqKdOR51llBtpMkEM= X-Google-Smtp-Source: AGHT+IGmim2TGNP4bLJGhGj0Mster7Ch+ZO5974gC98P0QfBptcqjMp4uvVjFUe5uzybnzIzfDy7gA== X-Received: by 2002:a92:c54e:0:b0:35f:69a7:15c0 with SMTP id a14-20020a92c54e000000b0035f69a715c0mr1510646ilj.28.1702441169142; Tue, 12 Dec 2023 20:19:29 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b001d077da4ac4sm9340888plf.212.2023.12.12.20.19.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:28 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Junfeng Guo , Simei Su Subject: [PATCH v2 09/25] net/igc: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 20:16:36 -0800 Message-ID: <20231213041920.729403-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213041920.729403-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231213041920.729403-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 Acked-by: Junfeng Guo --- 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