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 33D02436D9; Wed, 13 Dec 2023 05:22:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1557042F5D; Wed, 13 Dec 2023 05:19:52 +0100 (CET) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 2379442F03 for ; Wed, 13 Dec 2023 05:19:45 +0100 (CET) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1d098b87eeeso57553845ad.0 for ; Tue, 12 Dec 2023 20:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441184; x=1703045984; 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=K8MPB2LH0bXDyq/VdK9AtF694kfJBu8+loU4DNdtlDTwT8wNyMyoPPU32okwFQI9GK 94qOTIpr3GLhiHdX/FJKorEVdHn9hTkUGIQQUXDde8lKdYinsDPS0vNlA8stZjzcQqVy r0p/jM02z4xiPQDxuY68OXJSfnrUxUExkhhTTKNHeOt1D6whfdcpX/olQ/yzPVv/ROww hoq2dXJHkFw0oRWAkLfMpjtZkmwgk+0QjPpo4cQ/iJE/YPTFZI8KfFPpURhdipOrcg5B SLym8ZnxwgYb+sfKeEaQFezky7gCDHJX3sQPjYL6IhsSHMUWB2xu5Ij5jNAQ7+i3hCrL Z+AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441184; x=1703045984; 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=swJ2TJ1O1tGdbaIuOZTXEHehTJIbT5kAGUvJqo9P8Mv6tAlwNIo02qVco62x5qbn4o ggxfme7AczmzKxKmgKpm5avXeAsRfoImIoymh5TR1dOhaDz8RSM6/KrLMcjjqGQcOfqS 5JXFkq1hJaHs+3G8VhGECGrphPnRxlz6XAPICK1OMypgUv0Ptew8RWSPOQ+As+W+tL6c 8E8B6XAbeS0cuw1ZvRYCkboZKjLaQqh/wF148AdyHRF3QCRQp00NW5MNqRKoZ82JdpkP YpAxRReW5xuLtL/MmyP2Nvj7piqRpOPPMdeiPWPz9dvkKCNObFMSK4g4o2JRjpnOeVB6 Y82Q== X-Gm-Message-State: AOJu0YzgHqdyRVFvB77EzSdLcVmXpw5WfrlyMGzBFRxPGVO6WXt2Fiqo PxzW99Y1N1KJzWjNDW0mmmPywuM82AQZ6bQxphI= X-Google-Smtp-Source: AGHT+IHYYOrAddNrPZ36IOltrDp7b2WVedzYLqGZ0BxzqQVdts74QauVL1I2B/PW2xK/6ytBUBDyVg== X-Received: by 2002:a17:902:780e:b0:1d0:5ed4:4bf with SMTP id p14-20020a170902780e00b001d05ed404bfmr7066964pll.54.1702441184383; Tue, 12 Dec 2023 20:19:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:44 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Gagandeep Singh , Sachin Saxena , Hemant Agrawal Subject: [PATCH v2 24/25] dma/dpaa, dma/dpaa2: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 20:16:51 -0800 Message-ID: <20231213041920.729403-25-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 --- 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