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 F3A66436E3; Wed, 13 Dec 2023 17:42:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3F0842FFF; Wed, 13 Dec 2023 17:40:34 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 42E8242F9D for ; Wed, 13 Dec 2023 17:40:23 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1d2f1cecf89so25830675ad.1 for ; Wed, 13 Dec 2023 08:40:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485622; x=1703090422; 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=fKZ5fkLDaaxlNlp7bcbqKdX5Lwq94Qjyi3Uo27OSXHA=; b=irkG+g8Bnwi+YRX7fgsI+pPBSUSENqgza8GbAwXpcIR8b9NngwmNkuPREXcSC8B+8F VvcfES5yhczC1xVFL+oJ6hci4FkI+wUWrqwZ7FyLsIvL4NDuOfglQZd7WMnxhfLAyKo5 UjPfkkJmvyUcLzRQBtWPUubrKNVGcnbZJ/31XzIKmEjA3OPWFVNwRqLmuCu6SDoNi10S Sgy3iY3VIr5cK/dJ4gIehkpICkZ7gg24gd1d2lZLmWRCI8KavhvZYPhmAgpRsPlJR+TT DSpmwg1O72rRcucf4IEk40Yv1a5N9Fahkxheav+GLWLlZkqBxT1HpWYtNMmwdqFBgcWC F4uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485622; x=1703090422; 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=fKZ5fkLDaaxlNlp7bcbqKdX5Lwq94Qjyi3Uo27OSXHA=; b=mmyQm5NMfsI7Z6KySEi1y+OP1WzkfwC+VoP88Pt/jTx+mGCJuNhGWo3tYpv3aZBXWq XoXUCo6G4Nvs6BskPkYn5kxG5qcdCXH+iLmPD5NDWn0OAYW3u0N13Dhk4Jdk7F2jK/xQ NrJ8SsOAo0JsZvQpDdR7+392G0wB7BscAXKvAsGn4oUoJzMo+132Nm8JCdzq6UJ1O1ZZ cCHTw6lTv68CQR+/W3yGBdSkpKUIICK6Uva3C/RVqFNicpLf5VMBNs+d6ZDyVfZh7va1 ViLik0FRCq2O7Z3PpgG9YPdMw7NxbWwosHoVU+w8h3W5NDyuQ37BNz7ASdYVI5Eto1bm kQwg== X-Gm-Message-State: AOJu0YxbxfjZyUwU3iqRfCvG/r5rXG6FIIdOplmqZNLLyo87ScmKRORJ ER4gtn0rscx3VYvr+E2zP0ss9cTwZ7WNvE+Vp7E= X-Google-Smtp-Source: AGHT+IF/B1XsQX1Vd+0HJagOvKq2kYs0fku8Ykh5AtqUjS3xe+F+hTcRO22h/Cg1YGcNJ4/ECSNkCw== X-Received: by 2002:a17:902:c946:b0:1d0:c14b:dd0d with SMTP id i6-20020a170902c94600b001d0c14bdd0dmr4385304pla.54.1702485622526; Wed, 13 Dec 2023 08:40:22 -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 , Gagandeep Singh , Hemant Agrawal Subject: [PATCH v3 34/37] crypto/caam_jr: replace logtype PMD Date: Wed, 13 Dec 2023 08:36:08 -0800 Message-ID: <20231213163820.894987-35-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 The driver has macros for logging, they just weren't used everywhere. Signed-off-by: Stephen Hemminger --- drivers/crypto/caam_jr/caam_jr.c | 8 +++----- drivers/crypto/caam_jr/caam_jr_log.h | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/caam_jr/caam_jr.c b/drivers/crypto/caam_jr/caam_jr.c index b55258689b49..9c713d4e8133 100644 --- a/drivers/crypto/caam_jr/caam_jr.c +++ b/drivers/crypto/caam_jr/caam_jr.c @@ -2346,7 +2346,7 @@ caam_jr_dev_init(const char *name, rte_cryptodev_pmd_probing_finish(dev); - RTE_LOG(INFO, PMD, "%s cryptodev init\n", dev->data->name); + CAAM_JR_INFO("%s cryptodev init\n", dev->data->name); return 0; @@ -2386,8 +2386,7 @@ cryptodev_caam_jr_probe(struct rte_vdev_device *vdev) ret = of_init(); if (ret) { - RTE_LOG(ERR, PMD, - "of_init failed\n"); + CAAM_JR_ERR("of_init failed\n"); return -EINVAL; } /* if sec device version is not configured */ @@ -2407,8 +2406,7 @@ cryptodev_caam_jr_probe(struct rte_vdev_device *vdev) } #ifdef RTE_LIBRTE_PMD_CAAM_JR_BE if (rta_get_sec_era() > RTA_SEC_ERA_8) { - RTE_LOG(ERR, PMD, - "CAAM is compiled in BE mode for device with sec era > 8???\n"); + CAAM_JR_ERR("CAAM is compiled in BE mode for device with sec era > 8???\n"); return -EINVAL; } #endif diff --git a/drivers/crypto/caam_jr/caam_jr_log.h b/drivers/crypto/caam_jr/caam_jr_log.h index 106ff07a70fe..2dded646dbdc 100644 --- a/drivers/crypto/caam_jr/caam_jr_log.h +++ b/drivers/crypto/caam_jr/caam_jr_log.h @@ -28,7 +28,7 @@ extern int caam_jr_logtype; /* DP Logs, toggled out at compile time if level lower than current level */ #define CAAM_JR_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt "\n", ## args) + rte_log_dp(RTE_LOG_ ## level, caam_jr_logtype, fmt "\n", ## args) #define CAAM_JR_DP_DEBUG(fmt, args...) \ CAAM_JR_DP_LOG(DEBUG, fmt, ## args) -- 2.43.0