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 9D3E8436E3; Wed, 13 Dec 2023 17:41:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BA9642F7A; Wed, 13 Dec 2023 17:40:18 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id F409E42F1D for ; Wed, 13 Dec 2023 17:40:12 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d076ebf79cso41853455ad.1 for ; Wed, 13 Dec 2023 08:40:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485612; x=1703090412; 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=7nMm0M6rDFCtvM1w1fp0hwQRpMRypsEUoKyilyTJRmQ=; b=RCOxzV96o9hnigwxwQwXRqstc5TCcb0qMSXQrUCLwDzNCjLSYS7Dlif4tapYanIhfQ nqgjU/E8Rb0Xg2msO7s6kcQOHcV8g75jbQbNwKKp7T1s14ZJc1NCTnnkbQ4xFC+/rS4B inDGS/PDFQ+P+0q6BhFwW67x2sKiFqFNXqSjdTk5fausXiJKQH9HqPUYEojh6QGqHMj5 T90yhtEbaCnulNaZyYBF1uzvm2ACovOQ56aCNHDB9MHPcjelIX/Qm16jjhx/Ld61aJsQ rMyeChgHxwTrXGtKaPykbKDELbDu9EatHCZdyQns3LKelJUO9m+Fev+0MdqqRqqGopuS fcTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485612; x=1703090412; 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=7nMm0M6rDFCtvM1w1fp0hwQRpMRypsEUoKyilyTJRmQ=; b=Aezmgm2lBid1B+C+W6ucnXpIXdxmMx4+h8fE6EOrqx+F+a/dF9NLfnld+ERs6ryyWD 0nh5uPdYCQyQvFBD0mIzixEiLNGaUYEUIvMc2F/ycpfDQjDXKduRHhWIHaksww3isLBd E7eK7gatorg/Q7FyEeJ+YWZ5gBEs1FLmXI70jHTPC0k/9nr73ZSh9gbkcyiHc9JnolY5 //3L9Ck2uRjuu6OIkoyLMbF4AjLAIw8GcBB1P/8QfdpVf6Ec57h7Pn1Q5gSc3GIQf+2S mqCumYEi2QPU8I/aV86wP9x/H2RSB3dF0uwF+SflTKpWoI7QX/ID99G/8WtD3TgC9icb IYDg== X-Gm-Message-State: AOJu0YyxyyP6S6mkbnBT8QU0qyw+N8DTiwAdQPg2wZLtX1LjwYrRoIsa f0QR7RwVnE1SJMdH79b+IF4409qDDbn9f9yoFfs= X-Google-Smtp-Source: AGHT+IH9kAA4RMZia34SOR0+YKPKuOs1DfOCofQKJGWFgs5xDho7ymjq0U7YP44CHXECBn5SSU8Apg== X-Received: by 2002:a17:902:704c:b0:1d0:ab0e:9157 with SMTP id h12-20020a170902704c00b001d0ab0e9157mr4403726plt.128.1702485612210; Wed, 13 Dec 2023 08:40:12 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:40:11 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v3 20/37] common/dpaax: do not use PMD logtype Date: Wed, 13 Dec 2023 08:35:54 -0800 Message-ID: <20231213163820.894987-21-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 Use existing dpaax_logger log type instead of PMD. Signed-off-by: Stephen Hemminger --- drivers/common/dpaax/caamflib/compat.h | 5 ++++- drivers/common/dpaax/dpaax_logs.h | 2 +- drivers/common/dpaax/version.map | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/common/dpaax/caamflib/compat.h b/drivers/common/dpaax/caamflib/compat.h index 9776eed437ad..64ccdca95058 100644 --- a/drivers/common/dpaax/caamflib/compat.h +++ b/drivers/common/dpaax/caamflib/compat.h @@ -40,11 +40,14 @@ #define __maybe_unused __rte_unused #endif +extern int dpaax_logger; + #if defined(SUPPRESS_PRINTS) #define pr_msg(l, fmt, ...) do { } while (0) #else #define pr_msg(l, fmt, ...) \ - RTE_LOG(l, PMD, "%s(): " fmt "\n", __func__, ##__VA_ARGS__) + rte_log(RTE_LOG_ ## l, dpaax_logger, "%s(): " fmt "\n", \ + __func__, ##__VA_ARGS__) #endif #if !defined(pr_debug) diff --git a/drivers/common/dpaax/dpaax_logs.h b/drivers/common/dpaax/dpaax_logs.h index 180476f6757c..cec99a674056 100644 --- a/drivers/common/dpaax/dpaax_logs.h +++ b/drivers/common/dpaax/dpaax_logs.h @@ -37,7 +37,7 @@ extern int dpaax_logger; /* DP Logs, toggled out at compile time if level lower than current level */ #define DPAAX_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_ ## level, dpaax_logger, fmt, ## args) #define DPAAX_DP_DEBUG(fmt, args...) \ DPAAX_DP_LOG(DEBUG, fmt, ## args) diff --git a/drivers/common/dpaax/version.map b/drivers/common/dpaax/version.map index ee1ca6801c81..d48a6b6f37ee 100644 --- a/drivers/common/dpaax/version.map +++ b/drivers/common/dpaax/version.map @@ -6,6 +6,7 @@ INTERNAL { dpaax_iova_table_p; dpaax_iova_table_populate; dpaax_iova_table_update; + dpaax_logger; of_device_is_available; of_device_is_compatible; of_find_compatible_node; -- 2.43.0