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 D8403436D9; Wed, 13 Dec 2023 05:21:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FF5842F2B; Wed, 13 Dec 2023 05:19:47 +0100 (CET) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mails.dpdk.org (Postfix) with ESMTP id 48A5242F0B for ; Wed, 13 Dec 2023 05:19:42 +0100 (CET) Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6cea5548eb2so5762120b3a.0 for ; Tue, 12 Dec 2023 20:19:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441181; x=1703045981; 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=SJYyiQEsZV4d/4KqEbXmT4HtfHJjK3WV11CoJlRaXiA=; b=V8VeP3u8wlvRgZlxzGqkKpV89H5DCvtu5ytUeIs9RMeAAN54UBC1w9VPogXhi8Fy3q CcYkKeBMsR/oaJdIggx35PUzxHf7sIeZsvEPaqQJKQMRxVHr7QE7ddVp2JcgMjtUGE6q 1LeBMAvF/mJlOg/pMbZj1y1S3hGjeEhGYHW4gcamRxbYntx5JfXqAnC1zZ954dknOLJF cw0rqNUwDjrEMJIuUYUvV+jAh5R/3+HPiyRwZl+GdW1QHAwKAa4nDIoqjGfpXARnPE/6 LVhqtgU8OMyGhHfDB2Bq7f/3WxY0cOFt4VGUM6/x3u2rnLYSZNuCjVr59enB0zqGfESF U9Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441181; x=1703045981; 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=SJYyiQEsZV4d/4KqEbXmT4HtfHJjK3WV11CoJlRaXiA=; b=iJtCotuEMOKXavNBmuQ4pIg3Q7/2Ekxsm92ZoJz27Unji1npDGJu2Ap23vWX6ptjIk hG/B+RXELkvAfV9ZWerDFLRFlYMgFTggmk6Lk6a/Ye4HAOJ83cx69M0XFB+NFE33980H JftTU8IfRaOuR+9qd0ZqSI8CKKWqzcZi/2U4ua+ZN5HjkFxqi3OgoG3iVHQpGuUj7dp8 G9/NDjR6rs35+pqqnWg7z1jvevmWpSJiE44wnj3YvPYCUCaa8ANb/7L/bXw8wgoCkVLJ Hdy3+EO89e3WMRYC9sjZEBOYOfPM1APZ11E/0+259mVXIMwU/NRvBYz+iDfGGwQ6l5+I d9UQ== X-Gm-Message-State: AOJu0YwMDqebKrSgLGYS+lnOFSIrwVLi6Wg5RfBc1Z5tRGRNf0WAiY82 sSZrZd2sa3v0k6Rs/QWM7OpYeO6kxR/PMNu587s= X-Google-Smtp-Source: AGHT+IER8YsXuwqVhQpPGhD/jOXq4YMV8Jdl/DMAJ6oN9bwq7zwGsSqTcS69IJGFKtCMD2T33OoA+Q== X-Received: by 2002:a05:6a20:1450:b0:190:1fe6:fc36 with SMTP id a16-20020a056a20145000b001901fe6fc36mr8862659pzi.83.1702441181517; Tue, 12 Dec 2023 20:19:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:41 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 20/25] common/dpaax: do not use PMD logtype Date: Tue, 12 Dec 2023 20:16:47 -0800 Message-ID: <20231213041920.729403-21-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 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.42.0