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 A311643751; Thu, 21 Dec 2023 17:51:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D056742EE6; Thu, 21 Dec 2023 17:49:24 +0100 (CET) Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) by mails.dpdk.org (Postfix) with ESMTP id B909E42EC5 for ; Thu, 21 Dec 2023 17:49:21 +0100 (CET) Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-35fd0154368so3727915ab.0 for ; Thu, 21 Dec 2023 08:49:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703177361; x=1703782161; 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=mU02qcfKmh+7GTO/E4p4sLY/ezuijlsZqMjzilPdqn8=; b=lzpmSDwE7mpgDZ/cRY0g1cjdFgYBaBi7ZyQkx18SVxH/+mdPcZqoTmhPRvtpL2sFag VmcANlgonJ/q8mmM35XZ8dwSouaVbVo6ZtDebib/xvNpmT7pd8No4OHpBuTkgkJUhOmY 0nI0UYNEP2IUltaE0tEwZlGYNbYL5Fq84YFXOZze0j7SqCq2lkQcYitweHxmdC5Tk3uA 0oAae0yITJjwHeHksUrCuoJRQ28sK4a7gc+HxVw3PoCx7wiLz8fGo5ZsLE77sGyYYiiR jtqurVTRoGwyX63egwLg89h6S+IgQBKCxcSSuEzVXcufmXEXNWQatpx3L9517UQfkAv5 +GHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703177361; x=1703782161; 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=mU02qcfKmh+7GTO/E4p4sLY/ezuijlsZqMjzilPdqn8=; b=FgqPORHzjDBwnAIORswQRUqO9ThPU9Zt7DUfdympRpCSdK2DW4hfBzfkimNFtxQz21 JyiaLYnL8eIliw4hFTcJI8f/ZmyyMqoHdNQCrSWley8leYKj3tZ+lz38wjRGYz546yzG +wrziRcAceTf7aT/MwB0swYDESKm0U8SA16eRTr1DcTY3sV9Y8UkY1YVJ2PErg+NRtKj TQOF0IL74jX17janypiXePA/aTzdRJBMP3y/CKhB/1RWclAWQNqPFgb62IfIWm2dKwIc lNQVgH6oO9JEVIUhbRLbuyenelFQz8VkO9ODMiTww8yurF4sxWV/QecNeUq9y6he3rsU 6ZTw== X-Gm-Message-State: AOJu0YxrLsW3GJlEmpKT2P3E6Y5gn3hR2+HNWOLN/inArAxNhzuC8ZXx BPLdpA/WjkIfm6zHi0lnUV7t23Js1QP5FgmCwtouyQ== X-Google-Smtp-Source: AGHT+IF8J/Wf/ss15Rul6f+jA+E/rnpO/Ww6GvwxmMq8g4LtFNU1tmK975WWBHX6HrcR5aSn1qOrBw== X-Received: by 2002:a05:6e02:1c0b:b0:35f:afca:8c56 with SMTP id l11-20020a056e021c0b00b0035fafca8c56mr10493303ilh.24.1703177361167; Thu, 21 Dec 2023 08:49:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 08:49:20 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v5 18/18] log: mark PMD logtype as deprecated Date: Thu, 21 Dec 2023 08:46:35 -0800 Message-ID: <20231221164841.125006-19-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 is temporary patch to help find all misuse use of PMD logtype --- lib/log/log.c | 3 +++ lib/log/rte_log.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/log/log.c b/lib/log/log.c index ab06132a98a1..09a31a62c0fd 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -352,6 +352,9 @@ struct logtype { static const struct logtype logtype_strings[] = { {RTE_LOGTYPE_EAL, "lib.eal"}, +/* avoid deprecated warning */ +#undef RTE_LOGTYPE_PMD +#define RTE_LOGTYPE_PMD 5 {RTE_LOGTYPE_PMD, "pmd"}, {RTE_LOGTYPE_PORT, "lib.port"}, {RTE_LOGTYPE_TABLE, "lib.table"}, diff --git a/lib/log/rte_log.h b/lib/log/rte_log.h index 5ba198ba2484..1ac7e26f56ba 100644 --- a/lib/log/rte_log.h +++ b/lib/log/rte_log.h @@ -32,7 +32,7 @@ extern "C" { /* was RTE_LOGTYPE_RING */ /* was RTE_LOGTYPE_MEMPOOL */ /* was RTE_LOGTYPE_TIMER */ -#define RTE_LOGTYPE_PMD 5 /**< Log related to poll mode driver. */ +#define RTE_LOGTYPE_PMD RTE_DEPRECATED(RTE_LOGTYPE_PMD) 5 /* was RTE_LOGTYPE_HASH */ /* was RTE_LOGTYPE_LPM */ /* was RTE_LOGTYPE_KNI */ -- 2.43.0