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 96D28436D9; Wed, 13 Dec 2023 05:20:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BE9DE42EFA; Wed, 13 Dec 2023 05:19:39 +0100 (CET) Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) by mails.dpdk.org (Postfix) with ESMTP id 409BE42EE0 for ; Wed, 13 Dec 2023 05:19:37 +0100 (CET) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-5df49931b4eso42012427b3.0 for ; Tue, 12 Dec 2023 20:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441176; x=1703045976; 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=7FXYKzYQ77aGjhH1bhjZifmN+igyzDK4CXf2NeWVLqg=; b=0/PirAPpYcXuKy2lu9InFg+KYKqzbvUKBnP839YlB8wdlBDe5jemCuaOzrXZ4Bz1Tw inE95LF8wrHLoe75uDF6eVsI1SJ6+L3++35hzPBEe41mRL/PuNWCCVZUn/P2720OniF2 L2OBX9EmlQZLnC5yArNV0Mf9ITxVj6ep5V3uEwnpz5EE3Lzvmq/Gh8CnP4BTIOEEMMbj K/1PPgqCUoFSSQ5Cs9B4Ug9MySSJU+lELoZiHafGIowNmRNABjSMmLcKMGEgRsDxxBH+ HzSpdq27XFs2H4+IiZ7vdUrdyc5lobuimpgm4XR0VOfpH8/uqryLQ16RV1ENLLRAqDnb 9Ekw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441176; x=1703045976; 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=7FXYKzYQ77aGjhH1bhjZifmN+igyzDK4CXf2NeWVLqg=; b=oPWXjT6nMXrcsvajaEzKDu0TtV4Gxh0CMmh6aPJUa53f/NVscqQMqDsZGkakiR84v1 vzTeKuryre03uBzFHWViUVwUnZ4iDDEfWJIpcP0SrIRbw/nf02iFHAR+m4tKs3r7msWr Vm/7+Zp5ggWZMiMNFfIFxC1L+ipo54zHaps+XC3JmN93Ps8E81A5uo+akY9maaA/RADe QW1vKFyIJKZkJwWQ/K5IFWpZF16xvVkMcOQWYAnl/mzDZV+7oNN9xWy8MHGu/cEaM/A3 NmNTnKVu4ID+kxhhd0Ia1McgBXVt2kof/AvHwmZaxefN42voVs90ZPeRu1wVTya+o7ib LY7A== X-Gm-Message-State: AOJu0YywAN0oh8ZBVEuc1IxsNeLD5hyrPfMeSHz/2rgSDCc3fDWsE9od RuttH//snvxw2WkgP0arUmenqKHnLQcbwQQ/vVI= X-Google-Smtp-Source: AGHT+IEdVu0Xj1JMCYJQG3xXu8yP0EmVvW4DK0i+Toag4ahAA3MUqC1NWmtTsFBKCAIppJVBpHWkbw== X-Received: by 2002:a81:7c08:0:b0:5d7:1940:b370 with SMTP id x8-20020a817c08000000b005d71940b370mr5833490ywc.60.1702441176516; Tue, 12 Dec 2023 20:19:36 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b001d077da4ac4sm9340888plf.212.2023.12.12.20.19.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:36 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Harman Kalra , Gagandeep Singh Subject: [PATCH v2 13/25] net/pfe: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 20:16:40 -0800 Message-ID: <20231213041920.729403-14-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213041920.729403-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231213041920.729403-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 Want datapath logs to use own logtype. Signed-off-by: Stephen Hemminger --- drivers/net/octeontx/octeontx_logs.h | 3 +-- drivers/net/pfe/pfe_logs.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/octeontx/octeontx_logs.h b/drivers/net/octeontx/octeontx_logs.h index dec8042c67ba..cec5346d5a8b 100644 --- a/drivers/net/octeontx/octeontx_logs.h +++ b/drivers/net/octeontx/octeontx_logs.h @@ -19,11 +19,10 @@ rte_log(RTE_LOG_ ## level, otx_net_logtype_mbox, \ "%s(): " fmt "\n", __func__, ## args) -#define octeontx_log_info(fmt, args...) \ - RTE_LOG(INFO, PMD, fmt "\n", ## args) #define octeontx_log_err(s, ...) PMD_INIT_LOG(ERR, s, ##__VA_ARGS__) #define octeontx_log_dbg(s, ...) PMD_DRV_LOG(DEBUG, s, ##__VA_ARGS__) +#define octeontx_log_info(s, ...) PMD_DRV_LOG(INFO, s, ##__VA_ARGS__) #define octeontx_mbox_log(s, ...) PMD_MBOX_LOG(DEBUG, s, ##__VA_ARGS__) #define PMD_RX_LOG PMD_DRV_LOG diff --git a/drivers/net/pfe/pfe_logs.h b/drivers/net/pfe/pfe_logs.h index 58d5e8e7cff1..306bfc22ea54 100644 --- a/drivers/net/pfe/pfe_logs.h +++ b/drivers/net/pfe/pfe_logs.h @@ -26,6 +26,6 @@ extern int pfe_logtype_pmd; /* DP Logs, toggled out at compile time if level lower than current level */ #define PFE_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_ ##level, pfe_logtype_pmd, fmt, ## args) #endif /* _PFE_LOGS_H_ */ -- 2.42.0