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 41E9E41C7B; Sun, 12 Feb 2023 17:15:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 976F342D0B; Sun, 12 Feb 2023 17:15:01 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id B07B440ED8 for ; Sun, 12 Feb 2023 17:14:59 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id h4so3427111pll.9 for ; Sun, 12 Feb 2023 08:14:59 -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=nSCxumgihpw6PLAmO7FLecywJNidh15F9ftRQbiV9CE=; b=Ze3Bm08v0HUhIsMs3G39KoBtvj97kgvbg9MUAW6o2BAV/yiBhwOWuWtHzgXlnVlgl9 skn4YujSfT3SZrKS/lbGBZH2i1z//Mbom5KhCaGwRuOo7MCR2dtTK0868i8pPP1EscAE 1O7jr/fPY1MjJtfTu//zRS9hmZb/0Yn9I+IyhHvy7Vl3NNTZj9fxHrDvJaQxev3oE40l KTbDaKCmDSDGYTO7QNSBQNHM0cp+kHwlLpIsi1jOcmDqdRXkuujRXsgTv5cQoRTrLEDO 1D05L+OOxuwJf1du7P7YOnve0rBy4EiUKf1RWfZ5rYM3ekKTw1MmK7hLVIzF86dbGGRJ BYCg== 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=nSCxumgihpw6PLAmO7FLecywJNidh15F9ftRQbiV9CE=; b=Ig2lJ2XTFR4Ucm8WVpNiHDauOd9lq8cFGen8IyLAy1f1ifw8Ap7hiXgb7hYT0NFdIQ nhQo8XaS07NaZ5IU6L0zBdEqWzevD2zADUo8ya4E8/hhl4HX1nWOiHJP+nS+rRRstH9c sxsA1muf240Ku2SXmJV2auOZWAvmhQynDHiX5tSxNJ/269GHJwqtdBvZyZSb+A/7riPh XycUNXab5P7oqkMVd5lYcXXXbNmqaScAJjW19Dr3n211/MWXNqt9nPeEOkotcKvTIIYe SBBCVDeAUvEQfFWc5+JDe0jZiyCJcLGwNXVlRF40M2eLbm5shGWiImPB4UzRXeKBVtMY BDrQ== X-Gm-Message-State: AO0yUKVfaj3gRWkcx2/lCgT47gTzQT6tJtZaAHQUx8c+2gQfCgqSjvaW 41YpqgfZ5iifJtbXlSPfyNl4Zr4iTM08o045Dv0= X-Google-Smtp-Source: AK7set/t+KI8+nCBtMnFKDJo7k+KNpoAUZw6k740wBLW6HwfYD8Hw+ffPF+IEWbpvm2lirIt6xNFmA== X-Received: by 2002:a17:90b:17cf:b0:22c:305b:9503 with SMTP id me15-20020a17090b17cf00b0022c305b9503mr23567667pjb.41.1676218498630; Sun, 12 Feb 2023 08:14:58 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id a14-20020a17090abe0e00b002308e6e645bsm2709817pjs.49.2023.02.12.08.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 08:14:58 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , sergio.gonzalez.monroy@intel.com, Reshma Pattan , Declan Doherty , Neil Horman , Richardson Bruce Subject: [PATCH 2/5] reorder: use a dynamic logtype Date: Sun, 12 Feb 2023 08:14:51 -0800 Message-Id: <20230212161454.836493-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230212161454.836493-1-stephen@networkplumber.org> References: <20230208044825.1682620-1-stephen@networkplumber.org> <20230212161454.836493-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 385ee479da42..37bf132946b7 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