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 846CE4373D; Mon, 18 Dec 2023 20:28:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40A6242E25; Mon, 18 Dec 2023 20:27:04 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id AD44442DF6 for ; Mon, 18 Dec 2023 20:26:55 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d3b60c5054so10330815ad.2 for ; Mon, 18 Dec 2023 11:26:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702927615; x=1703532415; 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=4OMFrp4EDLBFSNpf4X4Tbs2FNhxEBfmVsajYs66cWfg=; b=VSMH0TEDbX6x24QZI+rGsM4JXvuZfnyEnVcNUg9cl+D83SDc8cfmjYDcMRzNDwT+Tj CdeQunj1JyF8mvyzd0/h8k5bByQwWE0ApfpSdmSbVD/Gt0VBlkGGoDYSI3Q9Fl114vtc V3JRBYhQKUVWxmlWKChxdkzKTJUEtpQ2IUnMUYAhjkEwLHx2te/ZEkWQ6fjd+toVfbbH SV4CR/+1zp/+646yZi+S1kgdzw3S8PQNf9MVMUJHREr5FSENNTFFw38xCyv/MMCvCoz6 B5gyYRNUPPWY3XVmsOIYkgkVIcDwF/TIzrTSJ115SIpT8wfJYu/cr/tEOHdM5az3eX0I MUyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702927615; x=1703532415; 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=4OMFrp4EDLBFSNpf4X4Tbs2FNhxEBfmVsajYs66cWfg=; b=wLZkAp+eu/RIDYC2NNrSYUaFNilYvimEnrdvrVRJB5n1IesYBT7vWi10ajcxQVAbcN +ShGfmMlUfD5/icvmoVwevVqNY6kShdQEE/VsKpBEfuh6JYqHGIxryX+AaIuNeczoQoV 0M5xbuvN1CLcNDHmtOMnzLRDONss2atNbVj/IRFu2DpT9hpMkpaRvl1Pawk24tXkFf+k lWleLawi+NQpaKntamgCBmWgMCFrb7lvH7Rr7ThRD6Fl9oQl1DG7A0cM39A2r2KoZFFa 5RGWfoWywfBLY67XCdWd9DEgFm2eqSZzRHT3vLFIvdvpZumDIUmRQIAWrFRN/zUUMGLr xZ8w== X-Gm-Message-State: AOJu0YyD2OZ9lTcAVRekEG4NON4MNLNxJl6J/1F7iabCL8LHt/yC/ZFt vJGOJ3QdnlBEtoui6JEDdeGPJ6JFvP++SqratcsqTw== X-Google-Smtp-Source: AGHT+IGxAVDz2198hqe+sEGdYlZFNPXjVT29wjGZdc0koeCDnoXrE0oRqH2F5NtAkVlGc4Xu5oOq8A== X-Received: by 2002:a17:902:d4c7:b0:1d3:ac1e:6ad5 with SMTP id o7-20020a170902d4c700b001d3ac1e6ad5mr1104375plg.72.1702927614983; Mon, 18 Dec 2023 11:26:54 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 11:26:54 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 17/17] log: mark PMD logtype as deprecated Date: Mon, 18 Dec 2023 11:22:33 -0800 Message-ID: <20231218192631.699267-18-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 This is temporary patch to help find all misue 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 3394746103d4..4d207b8da2cd 100644 --- a/lib/log/rte_log.h +++ b/lib/log/rte_log.h @@ -31,7 +31,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