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 45968436D8; Wed, 13 Dec 2023 02:48:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24C5142ED0; Wed, 13 Dec 2023 02:47:09 +0100 (CET) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 7D15E42EB4 for ; Wed, 13 Dec 2023 02:47:02 +0100 (CET) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6cea2a38b48so5661487b3a.3 for ; Tue, 12 Dec 2023 17:47:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702432022; x=1703036822; 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=6SYx+Mldf4uBde8N3K4jUofseVQz/FIGyWw4EfP7bzE=; b=TmPTazZDzXuwDKKmToLUDqD2K4/W+fdBlakGqOCRpkpF7svOuZWSJP8BgKqnvKcVVO 1RANLiOcjet92UeIZOW/BicuCA3+jh08y+0NI6n2GXDI9gRwrbuRtRorbQX5SvGi030Y 0/zh9t4qlPtAuHraTano2f/x+WY+NdAb5V7xEv/93DFuKbcZ26v0spvgWULuVY+tcUV4 Ya8voYs0XaIbn5vdRRM5wGfN20266s7Yi3TipNcXYoBlWvM2Nd3sm9OOlgh4pKUR7MSj 6evFRSouPJAiCEkXfHQaoJehyiQGmnwRhRq4mAokjl+t64zc7xaKfoh4QfgDBV2rIXIo gvMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702432022; x=1703036822; 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=6SYx+Mldf4uBde8N3K4jUofseVQz/FIGyWw4EfP7bzE=; b=xF9YpQkj4sUYKz2p6IPGB/wDk6smJJvbOlw+2WkqW3US3shqtidunTLBIWCz5P3jrZ W9JdJfWQRAfUcCjRajPkRq3pt7P4Mg03tn20qfCnuA40nEJ2YTc+Z0pKx7MrHPSJlRJj iqgAnY7Xl2m/EvLBgVSFjILPFU5wRH91jMKpXTDi9rsbinjJuwWG0cL0A2vSiIF1Ewx7 kiEYNTMzeOHFr7HnBGloTNw9nJNwTqQLuNsd5qkKg2J0cm3VRijyES4vrHtM+NzBpFUN 8SUkNtTyebiJxHTILmQSstQPBiX7eqCKK4d/MK9VE6y1ASK9vxe/DZ1UuNyY56xaSvpd aVzQ== X-Gm-Message-State: AOJu0YzNUpNwr5mSz+6/Jt+BcKr3IabzwBO1fQ28xjjWXzq5RNNfpgo8 jhV639m/OFnUX8RkBp42pDjeejl6g4Ijf3icpVbFBw== X-Google-Smtp-Source: AGHT+IGi1tQDU9Gc6sZkNS4ZOaNmTZUhHjmxP9So4V1JjKMlRfBlded01yUEpvVcIknpGjgeWPjJUw== X-Received: by 2002:a05:6a00:870b:b0:6ce:2731:e877 with SMTP id hj11-20020a056a00870b00b006ce2731e877mr6118727pfb.62.1702432021747; Tue, 12 Dec 2023 17:47:01 -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.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:47:01 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Gagandeep Singh , Sachin Saxena , Hemant Agrawal Subject: [PATCH 25/26] dma/dpaa, dma/dpaa2: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:41 -0800 Message-ID: <20231213014408.612051-26-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/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.42.0