From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 8CCDC43733;
	Mon, 18 Dec 2023 10:28:02 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 0FCC740F1A;
	Mon, 18 Dec 2023 10:28:01 +0100 (CET)
Received: from us-smtp-delivery-124.mimecast.com
 (us-smtp-delivery-124.mimecast.com [170.10.133.124])
 by mails.dpdk.org (Postfix) with ESMTP id 3F4A640E8A
 for <dev@dpdk.org>; Mon, 18 Dec 2023 10:27:59 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1702891678;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=s12GivG+0Dcm2mRecbCoq6QjNGag73lAsVqCC39NrjI=;
 b=GcQEyVUEK2OX7UbFGoiVYbim6rGeoQMxm/fo3/oEWFBJyRJ4Oy8UKS5wuy0YFLkJ4EVtfE
 1/dkA9P+y28cpZ8sSF/HUdLklZHozyB5Mz1vo0EHyAT5cyd38UhHf2YQ7sQoxBwqVOATw+
 Xc6rL3QO8IU9jNs04Oh6SoluACRSxpk=
Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])
 by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,
 cipher=TLS_AES_256_GCM_SHA384) id us-mta-628-CLbfe5lTORqCNv7mqvK1Uw-1; Mon,
 18 Dec 2023 04:27:52 -0500
X-MC-Unique: CLbfe5lTORqCNv7mqvK1Uw-1
Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com
 [10.11.54.4])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A963D29AC02E;
 Mon, 18 Dec 2023 09:27:51 +0000 (UTC)
Received: from dmarchan.redhat.com (unknown [10.45.224.218])
 by smtp.corp.redhat.com (Postfix) with ESMTP id CEB0E2026D66;
 Mon, 18 Dec 2023 09:27:49 +0000 (UTC)
From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: thomas@monjalon.net, ferruh.yigit@amd.com, bruce.richardson@intel.com,
 stephen@networkplumber.org, mb@smartsharesystems.com, stable@dpdk.org,
 Tyler Retzlaff <roretzla@linux.microsoft.com>, Ori Kam <orika@nvidia.com>,
 Parav Pandit <parav@nvidia.com>, Guy Kaneti <guyk@marvell.com>
Subject: [PATCH v3 02/14] regexdev: fix logtype register
Date: Mon, 18 Dec 2023 10:27:24 +0100
Message-ID: <20231218092738.749604-3-david.marchand@redhat.com>
In-Reply-To: <20231218092738.749604-1-david.marchand@redhat.com>
References: <20231117131824.1977792-1-david.marchand@redhat.com>
 <20231218092738.749604-1-david.marchand@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="US-ASCII"; x-default=true
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

This library logtype was not initialized so its logs would end up under
the 0 logtype, iow, RTE_LOGTYPE_EAL.

Fixes: b25246beaefc ("regexdev: add core functions")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Ori Kam <orika@nvidia.com>
---
 lib/regexdev/rte_regexdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/regexdev/rte_regexdev.c b/lib/regexdev/rte_regexdev.c
index caec069182..d38a85eb0b 100644
--- a/lib/regexdev/rte_regexdev.c
+++ b/lib/regexdev/rte_regexdev.c
@@ -19,7 +19,7 @@ static struct {
 	struct rte_regexdev_data data[RTE_MAX_REGEXDEV_DEVS];
 } *rte_regexdev_shared_data;
 
-int rte_regexdev_logtype;
+RTE_LOG_REGISTER_DEFAULT(rte_regexdev_logtype, INFO);
 
 static uint16_t
 regexdev_find_free_dev(void)
-- 
2.43.0