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 A7F90436E3; Wed, 13 Dec 2023 17:42:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C483642FCF; Wed, 13 Dec 2023 17:40:29 +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 458F942F83 for ; Wed, 13 Dec 2023 17:40:20 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1d069b1d127so42300795ad.0 for ; Wed, 13 Dec 2023 08:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702485619; x=1703090419; 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=lHdRS0EID0uD2cl70V3Q3vPOpZ9b5yBc2/0Fxu93p2U=; b=Nf1+97dda2jdj2c9U71Q4/2mGbKcKHRJeAXKChmgr7Arzb9a29SwlrZUvpyKz/y0oH Y01USsYha5QB1pnCOEdXZN3ZIque2PTiNsRaXg3tbzAzqUJYIfGx88KDxsxKjhWgn1LH R5cqPdVZM5mIOSQrCvgW+JLhSEBIIy7gai9S1bNDILxv+QxhMhMk39qR+yB1pD+cBldS kxpuc4qtWRIlMrhG1bMDEas8SqNrRs89fy+oWIyehrOnRwfK44vo2AI82s7O4tVGy/KD RU12sxBrqaQmpkJBvcwgZ1gxY+4ajmRf9BWxlpKn7evGb1oECj1gpwz6PLrlpIk9UG8s jTIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485619; x=1703090419; 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=lHdRS0EID0uD2cl70V3Q3vPOpZ9b5yBc2/0Fxu93p2U=; b=jDwcIY7JZLJYUMaVTx9S1phiIpKEAz+mxT2v2x0gleP1+FaPwDNES/6YA1kXSyiIOn VxkgoI4ZzZa1v3GRF6q2MqPkxcpPzoc41Q8PB/AV5SL7rBH5RULtjsKi22tRSPlez2AK 17cKKTSkLus5Qk3BQzgh7oqG3qLpIYA9KUx/EW3/Di6ENjkPSy4rJMwh7PiVF3q/dz2L 4Z+Yvzr88fA+1jnlkof6GUT5/OMwSkpggeN6pV2NlVHjZvVJf2RZrlXkSeWEMa0Xv8YM F62lat2boiyDNANqGnIhk++woSCaNXw/dVf/wJvXPqHuI+0ey9xTbKPph4aqcsd4vEHy VeDw== X-Gm-Message-State: AOJu0YywbjJKv7HhnwCc2Jf2tIZ8TstcpnKo1qlfO8eAI3xohWbq3EOs W4Daf31+FHndIT26IGNDe4w8AzHHmQMndgv4FKQ= X-Google-Smtp-Source: AGHT+IHySWAmVFgEsXMXz2Q0AWGt4uycasQKfa7V5BNU6vQIjZS/o3OxaHN3X4msM2e4m3K4Q1dweA== X-Received: by 2002:a17:902:e74e:b0:1cf:6453:b268 with SMTP id p14-20020a170902e74e00b001cf6453b268mr4904412plf.53.1702485619535; Wed, 13 Dec 2023 08:40:19 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:40:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Rosen Xu , Tianfei Zhang Subject: [PATCH v3 30/37] raw/ifpga: replace PMD logtype with dynamic type Date: Wed, 13 Dec 2023 08:36:04 -0800 Message-ID: <20231213163820.894987-31-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 Driver should not be using PMD logtype, they should have their own logtype. Signed-off-by: Stephen Hemminger --- drivers/raw/ifpga/base/osdep_rte/osdep_generic.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ifpga/base/osdep_rte/osdep_generic.h b/drivers/raw/ifpga/base/osdep_rte/osdep_generic.h index 33041c907e19..ad885107ab7d 100644 --- a/drivers/raw/ifpga/base/osdep_rte/osdep_generic.h +++ b/drivers/raw/ifpga/base/osdep_rte/osdep_generic.h @@ -16,8 +16,10 @@ #include #include +extern int ifpga_rawdev_logtype; + #define dev_printf(level, fmt, args...) \ - RTE_LOG(level, PMD, "osdep_rte: " fmt, ## args) + rte_log(RTE_LOG_ ## level, ifpga_rawdev_logtype, "osdep_rte: " fmt, ## args) #define osdep_panic(...) rte_panic(...) -- 2.43.0