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 422A741CEE; Mon, 20 Feb 2023 19:50:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 58582430D8; Mon, 20 Feb 2023 19:50:09 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 1AA93430CE for ; Mon, 20 Feb 2023 19:50:06 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id p1so490312plg.7 for ; Mon, 20 Feb 2023 10:50:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; 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=GAlRbq3o7ovDqkKTT41WAN/GYRy/jddESUXIeIkPiqg=; b=S1yEWCnQ78HOlWugoN+t4ZPZBq0lpxNOsC26e2XOptTUgeAfk4AWIJHcPiZ2aq43gV CGhIhR2JdOVFAqwLGluxye+HFHHNGuiBospum4W0J93OttuE4P9ovA6mikgsygc8YyjJ qgo3pFgyaGNJdWwxWgcFeW5e1Ue2REFfURNvyrZ7h11qZ88V00MzEDGr/D+OhHXmJAqQ rj8RPfiz8ldAJL8rhcfPsGurrHWx1ejPSY1oOvphweG/tu7AgXahyRFTYtPOBrNxtf7p gGeSd6iUvZqzdsi3d/3D/7fgLFnyHRbi/PM8vcCZL8NLoInDWdQaqJ7jABvYfQqztRFP cVhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=GAlRbq3o7ovDqkKTT41WAN/GYRy/jddESUXIeIkPiqg=; b=ayN7SfSIhIMdBBFIWVND6Ru0Ms18UvfcGyMtgELu/PALQmHrm2DUsy38wcG0MuAGJQ gCcgSKTXaMiPjGGBFPDQtXTy5mr6eTK0TuyLZhlZEGkfWjt4MCnYDt/Yz9Fo8T2AreQL mF+56yxymGD1tglvOsY1OX56jgjeFnlPKYRPyyCnVxwycIpJHfgihf/uYScHSo7nmNi4 cSv9hMbBILt9mHQ3aYD+G8kJgjexdHq2//amJKEhGoT42u7mQTPxuV6mtAe8LAVbNYNI oedLyA9mtvL9q9J7pou6ymciPbLwyE3L90WGImgqG3hSOYVFRuZMvxBkF8GtqPovFZSt Drog== X-Gm-Message-State: AO0yUKW987d83Qp7aFRqUGN/Qe/qlcJp0biYk5k7KLKwgQQlAhUW4EM8 1mpKtZpQ2GmpCnlRyIfrnJN2wcljL0XVdS1c8GQ= X-Google-Smtp-Source: AK7set8XTaCEbOtT/pludszSHUGPkb2POP+Rlp2Z2mJH/uwxoLFnxx1ynsA36gX9zukajQqnJ7UGPQ== X-Received: by 2002:a17:903:24f:b0:19a:906a:e052 with SMTP id j15-20020a170903024f00b0019a906ae052mr1847392plh.64.1676919004934; Mon, 20 Feb 2023 10:50:04 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id n21-20020a170902969500b0019607547f29sm2020798plp.304.2023.02.20.10.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 10:50:04 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , sergio.gonzalez.monroy@intel.com Subject: [PATCH v6 2/5] reorder: use a dynamic logtype Date: Mon, 20 Feb 2023 10:49:58 -0800 Message-Id: <20230220185001.50714-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230220185001.50714-1-stephen@networkplumber.org> References: <20230208044825.1682620-1-stephen@networkplumber.org> <20230220185001.50714-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 Libraries should not be reusing RTE_LOGTYPE_USER1 instead of doing proper logtype registration. Fixes: b70b56032bff ("reorder: new library") Cc: sergio.gonzalez.monroy@intel.com Signed-off-by: Stephen Hemminger --- lib/reorder/rte_reorder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/reorder/rte_reorder.c b/lib/reorder/rte_reorder.c index 6e029c9e02fd..7a3a97972cb7 100644 --- a/lib/reorder/rte_reorder.c +++ b/lib/reorder/rte_reorder.c @@ -15,6 +15,9 @@ #include "rte_reorder.h" +RTE_LOG_REGISTER_DEFAULT(reorder_logtype, INFO); +#define RTE_LOGTYPE_REORDER reorder_logtype + TAILQ_HEAD(rte_reorder_list, rte_tailq_entry); static struct rte_tailq_elem rte_reorder_tailq = { @@ -26,9 +29,6 @@ EAL_REGISTER_TAILQ(rte_reorder_tailq) #define RTE_REORDER_PREFIX "RO_" #define RTE_REORDER_NAMESIZE 32 -/* Macros for printing using RTE_LOG */ -#define RTE_LOGTYPE_REORDER RTE_LOGTYPE_USER1 - #define RTE_REORDER_SEQN_DYNFIELD_NAME "rte_reorder_seqn_dynfield" int rte_reorder_seqn_dynfield_offset = -1; -- 2.39.1