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 F1958436E3; Wed, 13 Dec 2023 17:39:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E56342F07; Wed, 13 Dec 2023 17:38:40 +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 169E8410D0 for ; Wed, 13 Dec 2023 17:38:38 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d08a924fcfso66489835ad.2 for ; Wed, 13 Dec 2023 08:38:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485517; x=1703090317; 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=/400DIMw+D49S0TEDvyT7cB5r8Xrx+n4umzAtIquzcQ=; b=IB/QSLU3eaM9idW+kPrg8ljUYoCF5ISHy7fGLAiLci2R3P+ZsRlkHDQ1JXEn0tv4kg iKxGIr1ubIu+rp6t/ecwP6Z65eW3uo+CvUv5eKm8MJhIb/4vi+WsCHOlcaJ0PmHQ8/PD DL5oEeJ7Y1XVXUgrVCfc5aV8XSFXgBGMO7Y8ok03poXOw2XhJ5Uv15IvF49/z5phKW31 Cpun087fHnChvPJAtEJ4083phXelhqco1VXTtVeul/B1LMSdrzGAy/gq5BxYKwFxeoSK sBOyRMCYtchL9GH0SdYXIgmZAKeLPN2l1N2jZFp6kbiTKVltLIbJv17NwZfjl+9SpOq+ FYSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485517; x=1703090317; 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=/400DIMw+D49S0TEDvyT7cB5r8Xrx+n4umzAtIquzcQ=; b=N8NwaS1ruIPi/KCjoIrerCn+I8kyGY0wszmrljH52IczKQEXeARl7Aqp94AgyGKp1b UHh7C8SOua00I07pwvpzmQ1nYKtJZtAMYSktT5RN1KpHv86fdlreYAZH/+6UNXDPz2Eh F6EhuU5Jt6BCKpvIJnL5Sh7YcMTW6PCZCEj7ITPeMCyciU1Sfwb7LtSKbIVi7l0Y2ulx uYZFScSg4XMBgMC4rY6UiOHDSqxiCvLdSjquvHwCDKxDdUSvFXN0LrT1606AvGFiSyzs dRbabFULqKjhaqaSOCGa80SNr+N3DunJmoW8/C7KalgmIkRqNs0JNLEqR3REZmJ/r2sk JtMw== X-Gm-Message-State: AOJu0YyowT5b76XJwbWzAzi1jaqhUeSWj+O0mSX96UqklqvMmJ1KZCbl B0TGsYP+tdp/6x8ioexV/lCRHANFw9wmH5JEgYM= X-Google-Smtp-Source: AGHT+IHkF5ojWSvItT6BrlLLjz9h/qjZ/vx0GDPj9YIaUcKnaODkp3SF2tB939cjImLdqgjzt3QIFg== X-Received: by 2002:a17:902:e88a:b0:1cc:43af:f568 with SMTP id w10-20020a170902e88a00b001cc43aff568mr9016163plg.6.1702485517303; Wed, 13 Dec 2023 08:38:37 -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.38.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:38:37 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v3 06/37] net/dpaa: replace RTE_LOG_DP with rte_log_dp Date: Wed, 13 Dec 2023 08:35:40 -0800 Message-ID: <20231213163820.894987-7-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 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.43.0