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 D9474436E3; Wed, 13 Dec 2023 17:38:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E7AC40E25; Wed, 13 Dec 2023 17:38:37 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 89223402EC for ; Wed, 13 Dec 2023 17:38:34 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1d075392ff6so56521765ad.1 for ; Wed, 13 Dec 2023 08:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485514; x=1703090314; 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=4MZYhyN/pIOSVy12e6edY9kwPy5Go/pM5wBt5I4Zz8I=; b=KJSyKXHDJ75pw2cFFS6EyU8d9+Xk6SllVa28+SbIhkzGMp/k67iavJ4wPeKTRdLNgq hy+5J75HjuhRI5gCcYQLTsh66VrRAR3wb6fMzcwt+GcpYL6LU/W3WUKyTWXi9tzF9srW jSjJb48WDlRSTfUDQGooFaXvAKRmfaVnhmOQVm/Lqaln24TYHYU/E/xcxnK6CP6ZCof7 uzLfg8h1NwE2Lw0MaZGOzpuqT6pYBYq6lG+JhiKDJa6nHuO1XjheIVQBCGJoFdRSeAf6 5ll3pm1qlkVORWwQf6+M2wWbYxGzRWhNxnmhbjTZs5ZS9s/DEWzmh9FHjhUz3Sw4e49X 6BoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485514; x=1703090314; 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=4MZYhyN/pIOSVy12e6edY9kwPy5Go/pM5wBt5I4Zz8I=; b=oV2MyGK7HrIc8V5pOXngVnngZLi/PFy1ssnZHtYvD7B0niAbxhBSsfr6vffocrFRxi X838AmRJrQlpfmVhmELsjlM82I2bA6YlUBXv+tVT9zTseVXQbm/iBZmC9olzbCIaaqe/ qdUMITlb5QJC9qZ+o2ZQH5YB8ilgRBNsyqAepcvz8BT16tyStkbrNH8mgIifLckm3Cv2 utomU53IOEatlL94y53csssTxF7a1IqUo3Fb5RIwv18UW28wbTYMbfhlJQIRZ/UL4TNv TU9EKbaxhk8CfIB7hWSXzkdOUwLqlaOTupW1729QFt/JkNKruwGWZ2rFMLOJyWmV3LaH WQlw== X-Gm-Message-State: AOJu0YwqPiEM+SIkDEasOch2g6GPElOfuF1cp6A1G2YQXNkJCK1mj54f 2zonXidh5WRNsvI0BRf7A1YXs56Dq2aCUNbjJeY= X-Google-Smtp-Source: AGHT+IEql4A4UEUNiwY7SsMwf/ByrUCzBUCzoxpfeThbqdjytxxOcLOMekYkQf7VZCUJOZuI//hIew== X-Received: by 2002:a17:902:db09:b0:1d3:3f3c:c237 with SMTP id m9-20020a170902db0900b001d33f3cc237mr3514899plx.32.1702485513750; Wed, 13 Dec 2023 08:38:33 -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:33 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Igor Russkikh Subject: [PATCH v3 03/37] net/atlantic: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:37 -0800 Message-ID: <20231213163820.894987-4-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/atlantic/atl_logs.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/net/atlantic/atl_logs.h b/drivers/net/atlantic/atl_logs.h index e3dba334fe92..c2a3a6320c58 100644 --- a/drivers/net/atlantic/atl_logs.h +++ b/drivers/net/atlantic/atl_logs.h @@ -14,18 +14,19 @@ extern int atl_logtype_init; #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") -#define PMD_RX_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, "%s(): " fmt "\n", __func__, ## args) - -#define PMD_TX_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, "%s(): " fmt "\n", __func__, ## args) - extern int atl_logtype_driver; #define PMD_DRV_LOG_RAW(level, fmt, args...) \ rte_log(RTE_LOG_ ## level, atl_logtype_driver, "%s(): " fmt, \ __func__, ## args) #define PMD_DRV_LOG(level, fmt, args...) \ - PMD_DRV_LOG_RAW(level, fmt "\n", ## args) + rte_log_dp(RTE_LOG_ ## level, atl_logtype_driver, fmt "\n", \ + ## args) + +#define PMD_RX_LOG(level, fmt, args...) \ + PMD_DRV_LOG(level, fmt, ## args) + +#define PMD_TX_LOG(level, fmt, args...) \ + PMD_DRV_LOG(level, fmt, ## args) #endif -- 2.43.0