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 B34C24373D; Mon, 18 Dec 2023 20:27:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 49E6942DF2; Mon, 18 Dec 2023 20:26:56 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 153AE42DD9 for ; Mon, 18 Dec 2023 20:26:50 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1d3536cd414so29422295ad.2 for ; Mon, 18 Dec 2023 11:26:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702927609; x=1703532409; 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=oJcAhXq40BJ8MzPRp2hHgJeOrpLwi0Gk4FjpICJuEMA=; b=U8gJsAwGBhmAPT0ZnWEaNbSPP3EGURrYHOieaNXSk8ldZd+4mbJ49rJPC758l5WA6L W5E/jUFQxLEjsnGbSq4MQ5wVChsdKC4pX2xFnZJkw8Yr8DViFaVzvNW7SHL8xVhdr/N1 g+XXaQO0HdEB6Ced+HHod2XD2unjv0b4HjAMae+uqhu4LkO5T5826vP9kGiO9UjCUjH1 AtIfg5rmI8x4kY4WQiXo/gHk7vQ3rviDRDPyx95WCmVXIvcF1ZH6kWW35845hVOwcQl8 7rugLw8KX1eCuLPkSQaQy+Jig23KfGUNGSh6zh2tJB8vYPJY/qXj7RYrOdtkB2dSm6RD pr6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702927609; x=1703532409; 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=oJcAhXq40BJ8MzPRp2hHgJeOrpLwi0Gk4FjpICJuEMA=; b=pCTX/ulCuLPg2W3p/gNycjbktAoGexwy0dISuXpOz2P7+wuteRh6MdwEeAHogl0Z/5 phrNyAjfpkzEZ2HL5tD8WGpQIroAneDJSig3LwrDLxA7dx+j0N1PZfj40Bnw+DT0bo5H FHn+Klrb8qrkKMIn6SDT8TycdXOJSRhDIW36NPOthyjEoMPDyIKT4981bppr2E8V2ArN 52momfcMd7LlpUve6T+RJWH07utzDIU6JfucZpwvO84Y3zKETj2EGEBEVjIcStk87heh xVKRIEh7twa/VxOem0WeGFhH2H/YWxKlgS1L+9h5jZ5qlU47no7zVX6wrE6vU08TykHl rSNg== X-Gm-Message-State: AOJu0YxriF+qFcBvB/ToHl3VJlKRKcJUzO264Z/aGlVa27U1Gex5pYMU lWonSnDpSzUMGG9NpHrJXUSm5rLvNCAV+KLHj5kKjg== X-Google-Smtp-Source: AGHT+IFFELKQfNJxe5uYAqYcPHm0g75GtejY1+32KXsby3S14ADTUB9qgPA2u3GjCM6Ye7MVbsW/gg== X-Received: by 2002:a17:903:1105:b0:1d0:c502:e09d with SMTP id n5-20020a170903110500b001d0c502e09dmr18479938plh.99.1702927609352; Mon, 18 Dec 2023 11:26:49 -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 10/17] crypto/caam_jr: use dedicated logtype Date: Mon, 18 Dec 2023 11:22:26 -0800 Message-ID: <20231218192631.699267-11-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 The driver has macro and logtype but not used in a couple places. Fixes: af7c9b5e9ce7 ("crypto/caam_jr: introduce basic driver") Signed-off-by: Stephen Hemminger --- drivers/crypto/caam_jr/caam_jr.c | 10 ++++------ 1 file 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..7b42ca529e9f 100644 --- a/drivers/crypto/caam_jr/caam_jr.c +++ b/drivers/crypto/caam_jr/caam_jr.c @@ -309,7 +309,7 @@ caam_jr_prep_cdb(struct caam_jr_session *ses) cdb = caam_jr_dma_mem_alloc(L1_CACHE_BYTES, sizeof(struct sec_cdb)); if (!cdb) { - CAAM_JR_ERR("failed to allocate memory for cdb\n"); + CAAM_JR_ERR("failed to allocate memory for cdb"); return -1; } @@ -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 -- 2.43.0