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 C0E22436E3; Wed, 13 Dec 2023 17:42:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A6A942FED; Wed, 13 Dec 2023 17:40:32 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id BA8A142F89 for ; Wed, 13 Dec 2023 17:40:21 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d04dba2781so42895615ad.3 for ; Wed, 13 Dec 2023 08:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485621; x=1703090421; 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=I3NHvtzTxrcTTRz067EYuF7Fq0/fx6bWGa0pTT+tCuk=; b=jsFa5OmVxMB2BZAxooG1XG/qrW0JRix+S/xkKIGpVH1rxN/5AJ9nN/Tje8h+AmJ2X4 2hl3RpAEiesi8vA1L5PXbKIv4eEgdfI5Cgwi3+4jLE2IgBnBeJVBsSrpy6gpb25LSlYV hoI5GYNHw1LdaAe22uBIH4BJfkfAjlsvfbMBUp9p6g7CiVCK6bgkwRQZUggjW/effR29 wdmLdFh9XjQ1uNDkyuSAyoeO1mKfcdGbQXG+Otk8+rMQtGXrEZ00JLzjpaeNKluccRU9 e4XoIfTE0xiF/ZecIgE3x3l1plBm6EuBu7LgUNnBm5xVAoV+7NyBGG/x2oq4Q8QJrUAa 3/Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485621; x=1703090421; 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=I3NHvtzTxrcTTRz067EYuF7Fq0/fx6bWGa0pTT+tCuk=; b=w2RN4rhOO8yCGhGpFvEXSUvfNW8sj+J28g3hlkIGo6DWxokcBW5zV/xe4kNRsmgtdK R3WYYDSVT9TTikTF6AnP6go4WGVIvQ7uYuroMvJ55PUEJc07+VP+tbeK5BZaiiHDqx/e 9KREB/M9F2EGzfAZgwVFiGKgZlnhtzEYdUUJEDSDrh57EhCMng8o/nJHu1oG/+S12feZ vdhFUmlVD/7dRMQn0s+j5QsxZVwU9nJ0bpcqsVOfLVFkOot/ZczcX8sf3tiwY+bM6amK xQ/JvHzciJf48BtbjS6U/bds7VxA9lH40lKtWRvw/MM7udSrJNQZcTGvrgRBcaJwX86r fj0Q== X-Gm-Message-State: AOJu0Yx6387LJ1cER88woZ2SeCA6Lx0SMsxmwVmzkJfP9+YU4n3rgf9w ZaDBqJR6nOY0wyTxpXenu4BTql8A3i94apJL9M8= X-Google-Smtp-Source: AGHT+IECsJqWKWVndCIPBU7rNeQpGXhvhp5YADRtiCLpFN8quChNjgdhEWpBQI5vxMP3RTewTAS0BA== X-Received: by 2002:a17:902:bd98:b0:1d0:cda5:d05f with SMTP id q24-20020a170902bd9800b001d0cda5d05fmr4552978pls.83.1702485620979; Wed, 13 Dec 2023 08:40:20 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:40:20 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v3 32/37] event/dpaa, event/dpaa2: use local logtype Date: Wed, 13 Dec 2023 08:36:06 -0800 Message-ID: <20231213163820.894987-33-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 The driver has macros to use local logtype, but some changes added PMD log messages. Signed-off-by: Stephen Hemminger --- drivers/event/dpaa/dpaa_eventdev.c | 2 +- drivers/event/dpaa2/dpaa2_eventdev.c | 4 ++-- drivers/event/dpaa2/dpaa2_eventdev_logs.h | 2 +- drivers/event/dpaa2/dpaa2_eventdev_selftest.c | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c index 46a9b88c73ae..a8e5c3421df1 100644 --- a/drivers/event/dpaa/dpaa_eventdev.c +++ b/drivers/event/dpaa/dpaa_eventdev.c @@ -1025,7 +1025,7 @@ dpaa_event_dev_create(const char *name, const char *params, struct rte_vdev_devi eventdev->txa_enqueue = dpaa_eventdev_txa_enqueue; eventdev->txa_enqueue_same_dest = dpaa_eventdev_txa_enqueue_same_dest; - RTE_LOG(INFO, PMD, "%s eventdev added", name); + DPAA_EVENTDEV_INFO("%s eventdev added", name); /* For secondary processes, the primary has done all the work */ if (rte_eal_process_type() != RTE_PROC_PRIMARY) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index dd4e64395fe5..85c2dbd998dd 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -1141,7 +1141,7 @@ dpaa2_eventdev_create(const char *name, struct rte_vdev_device *vdev) priv->max_event_queues++; } while (dpcon_dev && dpci_dev); - RTE_LOG(INFO, PMD, "%s eventdev created\n", name); + DPAA2_EVENTDEV_INFO("%s eventdev created", name); done: event_dev_probing_finish(eventdev); @@ -1178,7 +1178,7 @@ dpaa2_eventdev_destroy(const char *name) } priv->max_event_queues = 0; - RTE_LOG(INFO, PMD, "%s eventdev cleaned\n", name); + DPAA2_EVENTDEV_INFO("%s eventdev cleaned", name); return 0; } diff --git a/drivers/event/dpaa2/dpaa2_eventdev_logs.h b/drivers/event/dpaa2/dpaa2_eventdev_logs.h index 66c8c772740d..69aebf569fa5 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev_logs.h +++ b/drivers/event/dpaa2/dpaa2_eventdev_logs.h @@ -26,7 +26,7 @@ extern int dpaa2_logtype_event; /* DP Logs, toggled out at compile time if level lower than current level */ #define DPAA2_EVENTDEV_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_ ## level, dpaa2_logtype_event, fmt, ## args) #define DPAA2_EVENTDEV_DP_DEBUG(fmt, args...) \ DPAA2_EVENTDEV_DP_LOG(DEBUG, fmt, ## args) diff --git a/drivers/event/dpaa2/dpaa2_eventdev_selftest.c b/drivers/event/dpaa2/dpaa2_eventdev_selftest.c index 427aff4b1111..9d4938efe6aa 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev_selftest.c +++ b/drivers/event/dpaa2/dpaa2_eventdev_selftest.c @@ -774,15 +774,15 @@ static void dpaa2_test_run(int (*setup)(void), void (*tdown)(void), int (*test)(void), const char *name) { if (setup() < 0) { - RTE_LOG(INFO, PMD, "Error setting up test %s", name); + DPAA2_EVENTDEV_INFO("Error setting up test %s", name); unsupported++; } else { if (test() < 0) { failed++; - RTE_LOG(INFO, PMD, "%s Failed\n", name); + DPAA2_EVENTDEV_INFO("%s Failed", name); } else { passed++; - RTE_LOG(INFO, PMD, "%s Passed", name); + DPAA2_EVENTDEV_INFO("%s Passed", name); } } -- 2.43.0