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 7239A436D9; Wed, 13 Dec 2023 05:20:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8046742EAF; Wed, 13 Dec 2023 05:19:31 +0100 (CET) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) by mails.dpdk.org (Postfix) with ESMTP id 9235F42EB5 for ; Wed, 13 Dec 2023 05:19:27 +0100 (CET) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5e19bfb258cso20467107b3.3 for ; Tue, 12 Dec 2023 20:19:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441167; x=1703045967; 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=mLIuFJgxU/h22xc3bD+BN3rsasxN0djWRTHIA3iWW7k=; b=pFomchaXJwV7Q83E8NRnnSJ9AYx+p4PM6gVI+Wcxida1ApdpF89Hn5pmv3yiYRRmcI 3uadONJYlOOEoI6lnX2c3qBoE25xcAgN3GmMM41+VsT0MoBdy+9ggbLbG0UGyrMBndpr 16v9IGWefVkaRMfl7HBvK8zpl12R4AK1I9bhqm3vgGg8Gz2wyKRI8OgI+oQFkw4Lc2b+ Hjc1XTcQrqHQyGv0pjDNNQ5fFVuvf8Az/4lmxY1Wos06zrQL3kBXdk5QD1V2Z/o8lvon PUJImeDUoR7b7HIEim/Bt9W1ndlpsW6NZYva+Hnl4toufHG62wTi052tQffIkA49tKrR lebw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441167; x=1703045967; 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=mLIuFJgxU/h22xc3bD+BN3rsasxN0djWRTHIA3iWW7k=; b=e9/FtWHlY60FAr7P2ykNWpZWGUdN2Bvqd+boEyIDT7onsWHvchAjVNqrfqdqvTVY0r unZezZbLlzUtrjDwet5j7vjnobxeU9INIKUIoCON3PY4q/0sf/PtGXl9FIWRumiR92Kp HCjpaxL4LabM6yYYsRJjdPwqvrrseSR2/f256jNsK2125dZLYwoNbmGc4DegRTiQ/Jx4 TJ2MmvxdYK65BXjEbS24uxA1JhfbYOIZTB6SZD9ZgFdaWd6rB+4EF7T/hzENtJ2UmZNF lfx+mwEffh08QmtmXODcsqmU6iPvK+RW7leUlFyp2GpYMFx25tvqfQr7T3fr722E0Q5Q 9sCw== X-Gm-Message-State: AOJu0Yzl0sj5mYX2coNSBj8h2+/TAGDKbpBVcSJQNSfPbXrH9XTqzGUL kwtNcWU9DGXbGWDMZsCC45Ue/vtaDos2kOdes9w= X-Google-Smtp-Source: AGHT+IGBdcF89/3z+Z38qFxySw/GeeW/DzpAJyDEw8KX35ctPqcfa+HWKs2YjXPQJEiwQqDf5cp7oQ== X-Received: by 2002:a05:690c:e06:b0:5e1:9466:3cf4 with SMTP id cp6-20020a05690c0e0600b005e194663cf4mr3056729ywb.43.1702441166958; Tue, 12 Dec 2023 20:19:26 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:26 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 06/25] net/dpaa: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 20:16:33 -0800 Message-ID: <20231213041920.729403-7-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/net/dpaa/dpaa_ethdev.c | 4 ++-- drivers/net/dpaa/dpaa_ethdev.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index ef4c06db6a4d..0d0d493f3a6d 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -2096,7 +2096,7 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev) /* copy the primary mac address */ rte_ether_addr_copy(&fman_intf->mac_addr, ð_dev->data->mac_addrs[0]); - RTE_LOG(INFO, PMD, "net: dpaa: %s: " RTE_ETHER_ADDR_PRT_FMT "\n", + DPAA_PMD_INFO("dpaa: %s: " RTE_ETHER_ADDR_PRT_FMT, dpaa_device->name, RTE_ETHER_ADDR_BYTES(&fman_intf->mac_addr)); if (!fman_intf->is_shared_mac) { @@ -2166,7 +2166,7 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv, ret = dpaa_dev_init_secondary(eth_dev); if (ret != 0) { - RTE_LOG(ERR, PMD, "secondary dev init failed\n"); + DPAA_PMD_ERR("secondary dev init failed"); return ret; } diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h index 5b6802ece8f0..ced3e5f8ff98 100644 --- a/drivers/net/dpaa/dpaa_ethdev.h +++ b/drivers/net/dpaa/dpaa_ethdev.h @@ -232,6 +232,6 @@ extern int dpaa_logtype_pmd; /* DP Logs, toggled out at compile time if level lower than current level */ #define DPAA_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_ ## level, dpaa_logtype_pmd, fmt, ## args) #endif -- 2.42.0