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 51E4943751; Thu, 21 Dec 2023 17:50:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BEB5842EA8; Thu, 21 Dec 2023 17:49:13 +0100 (CET) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mails.dpdk.org (Postfix) with ESMTP id B3CF842E81 for ; Thu, 21 Dec 2023 17:49:08 +0100 (CET) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-5c239897895so473818a12.2 for ; Thu, 21 Dec 2023 08:49:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703177348; x=1703782148; 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=VgGbmMadvwLN222USqRh2rJxb8RODIYbfswlg39dpDjs71iSjLNrc5xs9dyHALOU+H 97z5bIT4Put5KeKh9XxmGtx/Jt4Bcw6AxGlmElayo9XF1uQK4tEkpILRU/sSxnrFhSro xlMAR+1eXmzmGnkuVBBHarQWQrzRjhT5Hz9fklmQ7hasnpSKIvFw/Q39LDR88sXFLxhD lxkn4Sf5z9zCeKj5LZZJSEGwaqw/bKL9OYN6zbmDQyicJj+SISJ6IGvBrePkyrDk15qV qxsz5gv2xiMi+QMWklXMZZQ68zNgxmxdrjl9sqRyBT0l810eDDq05AZwSSbb40Mt/uXY e08w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703177348; x=1703782148; 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=sQf2SSuTJKjzNDDeBOOu8s6ZB3oLZjebp3rw//qL+q/hWOVcowNxzDlWQB7tHzXQ+g up5/1P0lefh71wW5ziwPwgHe+woprSFCCuuPNjT4s8BLbZG60qhtR/lbnt0hQqTkjHTo WEhfYQLHUKqccGzmpgGTgq30VEoTUiIDuiiLGgRsP12xUPJiFYf8z82QV99Ex0nO1wGQ yBZ3SS+H2iDfuUx0eSZD2fWlmQOF4SgyD3oZ5laoGVhSwY2eNz/D1xLMr6DZFWE5uCEB cW8OfAmimJunXVAkngKFowpy6rcQiz6oEcdwyed8MFtnTTxcCASjXQgJUhwMGz8wQeSo LnoA== X-Gm-Message-State: AOJu0Yy2yB8lnS03owe70RVuiJ+pTTnX4mTnnXl7SFQ8Y/FIR8Ycq6lc aLT/1jE51qY7V8aAa6sOrSfnDb9oM93tXF9Tw6M6pQ== X-Google-Smtp-Source: AGHT+IEEqryTjXbd3h5JQ9FkAk22ZcUiRnolJu2VCvfR3fPYAXJXqYT1JHFxPJAvjR0kGNoXxw0o9Q== X-Received: by 2002:a05:6a20:e129:b0:195:1462:187b with SMTP id kr41-20020a056a20e12900b001951462187bmr645750pzb.15.1703177347954; Thu, 21 Dec 2023 08:49:07 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id g20-20020a63e614000000b0058901200bbbsm1842456pgh.40.2023.12.21.08.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 08:49:07 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Uttarwar , Ravi Kumar Subject: [PATCH v5 10/18] crypto/ccp: do not use PMD logtype Date: Thu, 21 Dec 2023 08:46:27 -0800 Message-ID: <20231221164841.125006-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231221164841.125006-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231221164841.125006-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