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 DCB76436D8; Wed, 13 Dec 2023 02:47:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F149042EBE; Wed, 13 Dec 2023 02:47:04 +0100 (CET) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 4539842E84 for ; Wed, 13 Dec 2023 02:46:59 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6ce72730548so5669678b3a.1 for ; Tue, 12 Dec 2023 17:46:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702432018; x=1703036818; 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=R6fyelVyzJCB6N9yaffkgDnTjwOV8K69eDv9YCJX968=; b=ShX2tr2rWB9P3g/CFYpatvMqAA1F+fe+k2cn8Tm/1cD4LIyDbm8x+zbJ5fFxMqVyyX S5PN3fVjIWEQXCdbw8erp8lxldYcHWjuKDcUNVE2+qIluQnRxcRe6PqcEvfC2+zWSJN4 xVRoiZDnYrI5oYhmFkYcVZ6Ye3Hwr3kO29wTcssoJ7AwAxZDtO9U8mKXXVop0KpTHqfD 1ruyRjdvZa+n3Y7+3fLokDW9qMIZL51z0Yl1L9B8U/22J3h4dJFcmXbc6AOznWDtyMvB EvvW6CXX/mj3094kIhr3OmzJkjcMr6H6YaXIL50s4jGtn/rZO89N/Mu2eVQs3XN8RyoJ Agfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702432018; x=1703036818; 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=R6fyelVyzJCB6N9yaffkgDnTjwOV8K69eDv9YCJX968=; b=gbMu/mubrrR1/hJ4MIwCdxicc7QO4e5s4GnXxLznDAD/htPKHSMab1j+t7CGC53eSZ h11aKqbLthJ3qVa9O76O7Pv4VWyfVxjHrKo3IVYPB28mqv30p67ay9M+mlRbDSeemKN+ 4qX8sX9Es/iBVequCeqYPexGJBWi0WJ9zofwZdMhhtjB3h0XrfsE1L0bkGcc8fKyY2a1 Tfp+izv+TLNqyqbb6JwLMSIJwHQXib86oPmcF4n5EGhaurGTg1cogh++t6qBUWqBdwOM KdVPq0Sr54QllX4zvIin+crFKwt2L+EEHhv+9fJZDe+DrGuWGwn7HsEz25obuVmfow4w 5/hg== X-Gm-Message-State: AOJu0YxajSHd17n9r1qoy3MKJvXNcx0YudWDha5kt+LZhdit7L2pg7mX 00/IHLwNi+O14LteTc6j5JVRaj8c3VQEbIgSJKx9NQ== X-Google-Smtp-Source: AGHT+IFRgfAtjeM+HxlXqSLEfAZ9i6/A91n0I1qI307RHe9Yps3qHYD0Y9NUC6miSJpEhxXGrqZMRQ== X-Received: by 2002:a05:6a00:1d26:b0:6ce:2731:e86d with SMTP id a38-20020a056a001d2600b006ce2731e86dmr7603951pfx.52.1702432018478; Tue, 12 Dec 2023 17:46:58 -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.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:46:58 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH 21/26] common/dpaax: do not use PMD logtype Date: Tue, 12 Dec 2023 17:42:37 -0800 Message-ID: <20231213014408.612051-22-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 Use existing dpaax_logger log type instead of PMD. Signed-off-by: Stephen Hemminger --- drivers/common/dpaax/caamflib/compat.h | 5 ++++- drivers/common/dpaax/version.map | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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/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