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 5269143760; Fri, 22 Dec 2023 18:20:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8244942E80; Fri, 22 Dec 2023 18:19:00 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id 885D242E60 for ; Fri, 22 Dec 2023 18:18:54 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6d7395ab92cso1360992b3a.2 for ; Fri, 22 Dec 2023 09:18:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703265534; x=1703870334; 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=0P5JeYaBgwSvXPSSuGltSf/JxnSe4nt5bCdGuX8YxoeyanFQkTpB3eCs5/lL2R4+yG TCNgDsGoKkJbyHKqAop3NwbppUfG7Ef+w5JJmExGKQDPEh1jc+33IO4NmlSd0f2n8ov9 g80krG+EM42mnRzTTCmP2ZFZKgwfrKmRLz8JJxHfPXyRFMgkUEmlry6DzKZ8L1Y2Zb67 79xZ098yUwQl1VKYKY4rZvqYoZiQS1oYY1NAwAr+SNACsPqjKNFuph4ThLwlFuE5vs8D fvHuouK33hxDSI4mR9ZzNd+FxTT9yaoyIQzltqov+tBgHQO+usIEVjP60Y3vA1tkjBkt d0iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703265534; x=1703870334; 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=A0w+d65FfdHplkNYh0IL1xgo4gPM1K+HT6yZ0jd9JQHKOUOYg71VD3VcYEPrkTsDB4 qAc4VqmTl2uIwShJbpfRjiI0TN2H0Qu4voAE0GErngoJFaFjXg9zZwNy1QzeifDmTFEo 5j2/dVFX9D3Z1LxqWS2690VYmqSUmCkw4thov8AR0LZ/bApL8wgwTIjLURvYm7Z9rlQ4 2ZxceHADI3cudo3SlH74IeVipd+QuAaFQaufu2jt9KtWIacS6kWtpLYLEBLDlkgWYdVx 0NDgv8csxzBI3SDmMWHaa708MeUPo1qiogdHpmFRrCz2GrYyZ9GY3UBN+0BPInAOHVqY uQdA== X-Gm-Message-State: AOJu0Yxb5ETTxliYmC/E3WeNOatOwj+Wlr/B3K+WkPiEaPGnAMNprF7/ 2L3I2E7jzcRvTQNGL0M7bXEiS+6Vw/tG0EdFyjInxRZM8kGkVw== X-Google-Smtp-Source: AGHT+IFCWLhdbvqtj3dXmd/oSxyU6jShemMPjmMQSuVizyHVcbh6t89VvT3NLqZblIS8AeQADeDHOg== X-Received: by 2002:a05:6a00:909b:b0:6d9:6adf:db3a with SMTP id jo27-20020a056a00909b00b006d96adfdb3amr1506724pfb.35.1703265533788; Fri, 22 Dec 2023 09:18:53 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id h19-20020a62b413000000b006d7d454e58asm372024pfn.117.2023.12.22.09.18.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 09:18:53 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Uttarwar , Ravi Kumar Subject: [PATCH v6 13/20] crypto/ccp: do not use PMD logtype Date: Fri, 22 Dec 2023 09:11:46 -0800 Message-ID: <20231222171820.8778-14-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231222171820.8778-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231222171820.8778-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