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 E8E42436E3; Wed, 13 Dec 2023 17:39:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 102BD42F39; Wed, 13 Dec 2023 17:38:44 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 46E3742F08 for ; Wed, 13 Dec 2023 17:38:40 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d3470496e2so14188145ad.1 for ; Wed, 13 Dec 2023 08:38:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485519; x=1703090319; 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=/DPSVVK2jSEmyArt2/1jZcc4tuBUSzU5dmJR3gwnmQE=; b=b/gKKytbA47rgfCRjIMLutnR8yNElkjFfhWTJ9yaJGVP2aprqlFL2RGB/D7yBBFDRn efJHr8yRoXsycGj2P1orVnD8gmdG6aSl69v6e50+LsUzltgy2V5VHt44RcnsF9LZP/Ke uIFMNv+FPyzsUqfkFIXvmuCdkzcY24YDxAKXyVHvha9gQnKCDYkoKaF10K2e37NafiCg A1QnLcrs7tDRS1hqfwfIcsv9O0vL3IUY0VDMGuMXqTFsRg8fb/PkmsMGn24jf5/5OIma u/gtRD0JNnvpgp/pfo0DsrU2nZ1Ha4rf8ZbaGRe38aOhqbI+KPoKWWJuE2m30cImA73K 0alg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485519; x=1703090319; 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=/DPSVVK2jSEmyArt2/1jZcc4tuBUSzU5dmJR3gwnmQE=; b=N02gaUDDED8cEMOJvNpBpJEFD4jo05/aDPt1TcnHHBiReOzrm61pmKNxoym0zRMYti gAFvux6mR1SLsWi8R6gRiO6UZXB5HJizPI6CBaPKYPdbN6+W8EolaI5YNXUqe/ztJbHV jSY9CIEEN/yhiumQKEmbSuyouzFWv/mozdcMGD5K/4FbXS/cPnorEq7HC836XP/+xXCE 2/V488X9o8C248D78OVdE1AT/QhF/A257+lRhMsEq1t0iuaN1LleTt7F4jHMiXy7LBjY ja9Ehw88ARf9PusYSei735wWnEszUPl1VGWu3NI9iuI/MVlesiNTNaC6rRBDTXqiL4dd Vlcw== X-Gm-Message-State: AOJu0YySPSNbDGZaed3MOmGJSIs9qNKSRI3ancEKY+kpAUkbw1G1JnB0 DyT5aA7EqqFJKZqyzPzkyhBPvlUMRXOYKbREvKk= X-Google-Smtp-Source: AGHT+IGSHfHWin9z9uE7SGp/53DdYP+L4+79TMjw17G0z5b/shzAykFQgHH0GupE00KYeg9+8Qyr5Q== X-Received: by 2002:a17:903:1105:b0:1d0:afea:78a8 with SMTP id n5-20020a170903110500b001d0afea78a8mr9891733plh.106.1702485519574; Wed, 13 Dec 2023 08:38:39 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:38:39 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Junfeng Guo , Simei Su Subject: [PATCH v3 09/37] net/igc: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:43 -0800 Message-ID: <20231213163820.894987-10-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 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.43.0