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 A5FC14373D; Mon, 18 Dec 2023 20:27:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B883D42DF3; Mon, 18 Dec 2023 20:26:54 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 6094A42DD9 for ; Mon, 18 Dec 2023 20:26:49 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6d267461249so2062898b3a.3 for ; Mon, 18 Dec 2023 11:26:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702927608; x=1703532408; 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=M41isxm+1S3Qhd8PKl2GQ1r3cucwAQRei3kPGk8UBNMb/k6oLGVnw+bJ2Z7cr3vN6l mphzDGw0PEyNsLnhtI3zB2gqtf8FVJ0AOvy74FpXboJUVw1ICX6VW8+6NMLi7/ff85fL 0bUulFpPFXtLsFPKkTesYqgTMP6G5i6aAFhatOL5NZApK0clNPuQcsksSLpcQbYZ5UTs 6VZKWAFZvJ1Q+4BC0IuO3WS7HKeunuWkWRoGVRj/P2MYSrkTwt2Bmdr+UyRD01kPVxGo B1e+peDt7m0o/L8Ph1kcmeOBD1+9nbemFeDyTWmqdrdWp5fKYtfbaeMaTrmyWADbxSqE pRfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702927608; x=1703532408; 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=Y2oEH3hHzJD8zl2p6i+Q1/M41T07rT1Ii5U1TKvnHK/a2FT+VbG6wotDYMQ0mzgbNN OVZw2NkXbgorbfgq7NEZnmlgHlkz1SNgXvoRLlqP4onfWxz86Nzv43jjlCskL7RSvJOE 9RwWwOuZqUfVD36rXKHu6b1Xcjn+0HEgtyioS++GVowqvTTJv9vSi3YxD9Jkun7UQXVv Ny6+2ddC/Fw0SsVXAoIo4N2oVtT+R24WYV+0vO0S3MJXVNjme2+/4pJnBhpV5X/SgzLW b8J5TGmbMsQYr+4v7MxwqPCH7ZRr9dtFQFxL/wFlKx6S8JqPMelu0kplsnVQkCPbr/hU 0p5A== X-Gm-Message-State: AOJu0YzACg5Qay0TjTZM8yYH+5A7iM5kCYN5WFRqgj7wWxAiqs6PS8rr GUVVfVgSsAjd2GGSPzsP0xjppXusqvNnuRLWG7DIiQ== X-Google-Smtp-Source: AGHT+IFygTpfRH+nqr1QfXHS0sqXtna9E4KIG1BswcD71fVdRkljvWVQkkxYjs42Vyr0icbQ7lmPIg== X-Received: by 2002:a05:6a20:7fa6:b0:18f:fbe4:ca80 with SMTP id d38-20020a056a207fa600b0018ffbe4ca80mr7757598pzj.63.1702927608564; Mon, 18 Dec 2023 11:26:48 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p17-20020a170903249100b001cfbe348ca5sm19410284plw.187.2023.12.18.11.26.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 11:26:48 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 09/17] crypto/ccp: do not use PMD logtype Date: Mon, 18 Dec 2023 11:22:25 -0800 Message-ID: <20231218192631.699267-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231218192631.699267-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231218192631.699267-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