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 65A1A436E3; Wed, 13 Dec 2023 17:41:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C40542F99; Wed, 13 Dec 2023 17:40:23 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 0654342F35 for ; Wed, 13 Dec 2023 17:40:16 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1d2eb06ab11so31326485ad.1 for ; Wed, 13 Dec 2023 08:40:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485615; x=1703090415; 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=Jm6n/Nl4TEEqxqEX4TXEaP4f/5o/8ZaN/h0MBwErqpw=; b=JOMSD77pgu5qQQbs0Yy4dp0Vg0/X4uMi0qpvtLWdZ7SvbZ/tEk7hgcZiiC/qQiNyCj MBGQMawLwrppPKgkegXD0i8L5LFZj0fZEbk9o/Zt+GTJOMKKgwFGB5URpIeGF5b7MuNn a4JEaSSpTNI2R95PBLGLOhwL0GKXedZzRfppxhuKClSlVzE2S7otF69elsASs4cn36nM DpCSnCkhoVwaKwfXVzTCGU6jFWaWZ5S7icwJ9UB5zWFOUkEaHsIiE95iwdymZGkgRyQj a3lsTugoLmuAHeIZmnlqjzz1z0sxVk7rM9g0lNCa29YuwLFjrhSBQC0lcxtqzIC4E7ro 4kzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485615; x=1703090415; 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=Jm6n/Nl4TEEqxqEX4TXEaP4f/5o/8ZaN/h0MBwErqpw=; b=haeHagcLg3NCDyJFbPrqVG2buoueCtw/5zItV3/jDFdjxSUQwAJ6WFztzKD1blo15n //JsxMryIPVpd6DyMwmlViU83ejQIXF3pRV/K0eCDwSkrWjBusNM75tRNjK1g6X3uKHX bZLOTuJILA1G2Z0NZPnpJRER5khvM1xKK4LbluVYMbugkxp6V8HW5+urwNFaCJeBqWXr 6gQzynBkIz4Y8vjlqPr5VH/0AkfLKmIg/6u23qNOrI6W2avDgh7epwEYoHvFvyewzx8h Zrt0yJXZmy6U/GxwRSRpszdZHmvQQTNxwFP3Xu8xhyLmh50rlM3UmTU74IaIEmh83GDj gNtg== X-Gm-Message-State: AOJu0Yy6a9EsHNYw6kIPYPFikWPF0xJyb/GFe0iT8hhKOSBxsdW8wkGW YP7FKdy9GIC5gpYAiNOtEq2IuaibxZFehXh53KA= X-Google-Smtp-Source: AGHT+IH0S68EXiHBo4woLagey1PMR6Kmc8Pd3g/8LRebtiv0j/wlH1ZdXx7iVGR5+7BIWhw4oq6Azg== X-Received: by 2002:a17:902:e5c7:b0:1d1:cd8b:8bb4 with SMTP id u7-20020a170902e5c700b001d1cd8b8bb4mr5078659plf.50.1702485615277; Wed, 13 Dec 2023 08:40:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:40:14 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Gagandeep Singh , Sachin Saxena , Hemant Agrawal Subject: [PATCH v3 24/37] dma/dpaa, dma/dpaa2: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:58 -0800 Message-ID: <20231213163820.894987-25-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/dma/dpaa/dpaa_qdma_logs.h | 5 +++-- drivers/dma/dpaa2/dpaa2_qdma_logs.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/dma/dpaa/dpaa_qdma_logs.h b/drivers/dma/dpaa/dpaa_qdma_logs.h index 762598f8f72f..169fbf364265 100644 --- a/drivers/dma/dpaa/dpaa_qdma_logs.h +++ b/drivers/dma/dpaa/dpaa_qdma_logs.h @@ -25,8 +25,9 @@ extern int dpaa_qdma_logtype; DPAA_QDMA_LOG(WARNING, fmt, ## args) /* DP Logs, toggled out at compile time if level lower than current level */ -#define DPAA_QDMA_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, "dpaa_qdma: " fmt "\n", ## args) +#define DPAA_QDMA_DP_LOG(level, fmt, args...) \ + rte_log_dp(RTE_LOG_ ## level, dpaa_qdma_logtype, \ + "dpaa_qdma: " fmt "\n", ## args) #define DPAA_QDMA_DP_DEBUG(fmt, args...) \ DPAA_QDMA_DP_LOG(DEBUG, fmt, ## args) diff --git a/drivers/dma/dpaa2/dpaa2_qdma_logs.h b/drivers/dma/dpaa2/dpaa2_qdma_logs.h index a46b8f24b5a7..52514c2dcc91 100644 --- a/drivers/dma/dpaa2/dpaa2_qdma_logs.h +++ b/drivers/dma/dpaa2/dpaa2_qdma_logs.h @@ -30,7 +30,8 @@ extern int dpaa2_qdma_logtype; /* DP Logs, toggled out at compile time if level lower than current level */ #define DPAA2_QDMA_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, "dpaa2_qdma: " fmt "\n", ## args) + rte_log_dp(RTE_LOG_ ## level, dpaa2_qdma_logtype, \ + "dpaa2_qdma: " fmt "\n", ## args) #define DPAA2_QDMA_DP_DEBUG(fmt, args...) \ DPAA2_QDMA_DP_LOG(DEBUG, fmt, ## args) -- 2.43.0