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 62767436E3; Wed, 13 Dec 2023 17:42:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EE4C43252; Wed, 13 Dec 2023 17:40:36 +0100 (CET) Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by mails.dpdk.org (Postfix) with ESMTP id 1DCE042F9F for ; Wed, 13 Dec 2023 17:40:24 +0100 (CET) Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-28ac6ecb9bdso1578549a91.1 for ; Wed, 13 Dec 2023 08:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485623; x=1703090423; 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=5DFqFzsaRdJASZzwcyvtGPWWuOUL4czYfaLuijsZvIw=; b=zbBxT6z93zstnvt8HLchFgw6jidE/GXnRpA9LPYRghBDpqZYomRFknx8EmHfoVrwdn ugqqBhk0ZBB6UdK6ZdGmurxbcMJQNze0Xd4ZZDSS2O1zcZdiGrpQtijCnaSgAniZWPqA ANPxcYsaYt48g9CVpudwmlCM5CKmhs5qTkKO4dwEcBI7frjkO/ytRF+2xZbM7Fa2f6hy AZUkNo4toPDnq4f1lVcVk4IyaHwhLxeCYJFbEB3F8Vd7VgJmZrCiJzlp9ztsOTZIicTA /1PclZAfRq2HtzL9jOOdgoYgOr8MM6/tnmtivBRTcV8OJMyOPUljg3djcUg6JWnwVDem N6Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485623; x=1703090423; 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=5DFqFzsaRdJASZzwcyvtGPWWuOUL4czYfaLuijsZvIw=; b=BiNv5omSPqKt16r1PyBbWLmjpOsBc4qIh8ASuopotj1mUq1zfWrlEY7jxrkUaoE30+ wMHTjIPnm/Xw9GK7p80YpGqE/11Nw3rJn/dLRhZX/LbuxYbSfnes7Z0ufoE2txwdf5SZ YGrDw97XNfhk/EOWBiPYkJVtaqj89NELo+5TrhZhOFhMLtV5mW9YuIytLQVbVyTzDxZI Zs/DQaVvys6SFZY8/W8jsCaj7+3QjMJO4oaLZC8Z1xUd2xuiwoC7PAuh/ybznC6YMI4E Nb7mPo1VNG0mVKQaRszatYIdznGdxRP17wE9ixqhVzCPE3MByUFxsKYQXxb3cFEvMuVX HO8A== X-Gm-Message-State: AOJu0YzZu/mTnqVmjpKqRoUvzFWsuKf/DOAsNvwFVmNRg9u9zehU2lRv 8yE1pTPTfE0g7tNrtwT5ESeD0TohbOMKSVJTYuo= X-Google-Smtp-Source: AGHT+IF9Aqvk7tXGcbjNJdzsSVmg888oLtiqsDWcbFy3C8D7mkkh7QD0hbdR4ZVs70poNjctntm6gA== X-Received: by 2002:a17:90a:cc14:b0:28b:48:bf46 with SMTP id b20-20020a17090acc1400b0028b0048bf46mr161666pju.16.1702485623299; Wed, 13 Dec 2023 08:40:23 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:40:22 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Uttarwar , Ravi Kumar Subject: [PATCH v3 35/37] crypto/ccp: do not use PMD logtype Date: Wed, 13 Dec 2023 08:36:09 -0800 Message-ID: <20231213163820.894987-36-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 This driver has logging macros but not used consistently. Fixes: ef4b04f87fa6 ("crypto/ccp: support device init") Signed-off-by: Stephen Hemminger --- drivers/crypto/ccp/rte_ccp_pmd.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/ccp/rte_ccp_pmd.c b/drivers/crypto/ccp/rte_ccp_pmd.c index a5271d72273d..46a9275e3743 100644 --- a/drivers/crypto/ccp/rte_ccp_pmd.c +++ b/drivers/crypto/ccp/rte_ccp_pmd.c @@ -194,8 +194,7 @@ cryptodev_ccp_remove(struct rte_pci_device *pci_dev) ccp_pmd_init_done = 0; - RTE_LOG(INFO, PMD, "Closing ccp device %s on numa socket %u\n", - name, rte_socket_id()); + CCP_LOG_INFO("Closing ccp device %s on numa socket %u", name, rte_socket_id()); return rte_cryptodev_pmd_destroy(dev); } @@ -228,7 +227,7 @@ cryptodev_ccp_create(const char *name, } cryptodev_cnt++; - CCP_LOG_DBG("CCP : Crypto device count = %d\n", cryptodev_cnt); + CCP_LOG_DBG("CCP : Crypto device count = %d", cryptodev_cnt); dev->device = &pci_dev->device; dev->device->driver = &pci_drv->driver; dev->driver_id = ccp_cryptodev_driver_id; @@ -279,7 +278,7 @@ cryptodev_ccp_probe(struct rte_pci_driver *pci_drv __rte_unused, }; if (ccp_pmd_init_done) { - RTE_LOG(INFO, PMD, "CCP PMD already initialized\n"); + CCP_LOG_INFO("CCP PMD already initialized"); return -EFAULT; } rte_pci_device_name(&pci_dev->addr, name, sizeof(name)); @@ -288,11 +287,11 @@ cryptodev_ccp_probe(struct rte_pci_driver *pci_drv __rte_unused, init_params.def_p.max_nb_queue_pairs = CCP_PMD_MAX_QUEUE_PAIRS; - RTE_LOG(INFO, PMD, "Initialising %s on NUMA node %d\n", name, + CCP_LOG_INFO("Initialising %s on NUMA node %d", name, init_params.def_p.socket_id); - RTE_LOG(INFO, PMD, "Max number of queue pairs = %d\n", + CCP_LOG_INFO("Max number of queue pairs = %d", init_params.def_p.max_nb_queue_pairs); - RTE_LOG(INFO, PMD, "Authentication offload to %s\n", + CCP_LOG_INFO("Authentication offload to %s", ((init_params.auth_opt == 0) ? "CCP" : "CPU")); rte_pci_device_name(&pci_dev->addr, name, sizeof(name)); -- 2.43.0