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 D6EEB430C3; Mon, 21 Aug 2023 18:16:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C594C40DF8; Mon, 21 Aug 2023 18:16:42 +0200 (CEST) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 81C3640DF5 for ; Mon, 21 Aug 2023 18:16:41 +0200 (CEST) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1bf0b24d925so21131655ad.3 for ; Mon, 21 Aug 2023 09:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1692634600; x=1693239400; 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=Np2/uHtGZOIcjyvGOcMZwVyyEmyrMQOyGnXBvNy+N40=; b=1v6qUHG3FFiPD7uBfJV17f35GXqnpFxvdU7x5MPMUemForwkwkGscTDRiFAJUIvftF +9TxTSzD9XLRU12QK46NHaFSlcOY8CW3/MC1MdTfR9ZGVxX7VEu6HFR+xF1/UPmvNHYf 2tNxdw+oTY6MvZsZEt8cEqPMrDdJa4u0jt/YqqVBO7Y5mPOldDDuNld0Z+EwZAViEr7S lvbc9/NCpihWKRf+AK96OwMIRpD5IkW0hzE02/w8iQd0Cn6E5Ek0fQ8I/U1pmiKN7d+3 68kAreAung1NnXw4ygpUecSTORbVhPkQxpvjkGD0Tb228vq2JPzL2MRU2bX3VSEamHgx 0/8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692634600; x=1693239400; 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=Np2/uHtGZOIcjyvGOcMZwVyyEmyrMQOyGnXBvNy+N40=; b=byGMjAI4iNwC3VNUWpIEDqnMG6ABHnukyCwLsMuwxXFyNr7heO4eIUsgVRUcpy8825 GyiFOqsxyQJQ1n568fH6YtHY3vH3OHHh7ZKE3JCjwbz4Xoz3PUpydT5gEwb8JRuxh6EX QlSmN5/UhhbCaRzwUSnphPBfWJ5wrbuip350WmtZ4uN4ak6MEETX2Q9okZLu3DskE91X I8cKCd/EBQ7Dc3O+CE4dYQ4ajjRiQQoq4FabUj7+vnyfjSRJ0tjn8JV6BE0Of5BhCUB+ U8MG2HXPwDNkRg3XkuZv+jDgXIFyfwUo2SOe9qsoiXiPugMNv0qRWR2pTmp1IAxbPSM2 hbJQ== X-Gm-Message-State: AOJu0YyNQfVk0W67rMLii6eaAlYCDb/uGO1Kg5IHwd49rrkKV1NeY9pM w77thKEyWN9qjH7iTz3YSd+Spr2J6JqMZzqFi7tv1Auu X-Google-Smtp-Source: AGHT+IG8SHfLsjDl0epzuF/LQ7npJo57mpdACMqOv2ci3sEds0YjwC8ouBO4A4FWikPRpKKeLiWvng== X-Received: by 2002:a17:902:ec86:b0:1b7:e9e9:1004 with SMTP id x6-20020a170902ec8600b001b7e9e91004mr5756825plg.30.1692634600431; Mon, 21 Aug 2023 09:16:40 -0700 (PDT) Received: from hermes.local (204-195-127-207.wavecable.com. [204.195.127.207]) by smtp.gmail.com with ESMTPSA id iw22-20020a170903045600b001c07110f3ccsm2016506plb.247.2023.08.21.09.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 09:16:40 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , viacheslavo@nvidia.com, Matan Azrad , Ori Kam , Suanming Mou , Gregory Etelson Subject: [PATCH v3] common/mlx5: replace use of PMD logtype Date: Mon, 21 Aug 2023 09:16:25 -0700 Message-Id: <20230821161625.413827-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223174127.189231-1-stephen@networkplumber.org> References: <20230223174127.189231-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 goal to eliminate the generic PMD logtype. One place it is used unnecessarily is in the mlx5 common code. Change the one RTE_LOG() call here to use the same macro as other log messages in same file. Fixes: 9c410b28b27a ("common/mlx5: refactor HCA attributes query") Cc: viacheslavo@nvidia.com Signed-off-by: Stephen Hemminger --- v3 - also address use in glue code drivers/common/mlx5/linux/mlx5_common_os.c | 2 +- drivers/common/mlx5/mlx5_devx_cmds.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/mlx5/linux/mlx5_common_os.c b/drivers/common/mlx5/linux/mlx5_common_os.c index 2ebb8ac8b6e5..7260c1a19fd3 100644 --- a/drivers/common/mlx5/linux/mlx5_common_os.c +++ b/drivers/common/mlx5/linux/mlx5_common_os.c @@ -266,7 +266,7 @@ mlx5_glue_path(char *buf, size_t size) goto error; return buf; error: - RTE_LOG(ERR, PMD, "unable to append \"-glue\" to last component of" + DRV_LOG(ERR, "unable to append \"-glue\" to last component of" " RTE_EAL_PMD_PATH (\"" RTE_EAL_PMD_PATH "\"), please" " re-configure DPDK"); return NULL; diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index 66a77159a031..9db0b2ac8983 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -543,7 +543,7 @@ mlx5_devx_cmd_query_hca_vdpa_attr(void *ctx, MLX5_GET_HCA_CAP_OP_MOD_VDPA_EMULATION | MLX5_HCA_CAP_OPMOD_GET_CUR); if (!hcattr) { - RTE_LOG(DEBUG, PMD, "Failed to query devx VDPA capabilities"); + DRV_LOG(DEBUG, "Failed to query devx VDPA capabilities"); vdpa_attr->valid = 0; } else { vdpa_attr->valid = 1; -- 2.39.2