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 553A1436D8; Wed, 13 Dec 2023 02:47:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 042D442E94; Wed, 13 Dec 2023 02:46:57 +0100 (CET) Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) by mails.dpdk.org (Postfix) with ESMTP id C8043402B8 for ; Wed, 13 Dec 2023 02:46:53 +0100 (CET) Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6d9dadc3dc0so4820689a34.1 for ; Tue, 12 Dec 2023 17:46:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702432013; x=1703036813; 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=LLXveRTke21yVSSid4+CW/mh3x9nQCWvoATdZWl1PF1NnJ/apLNZ5JYVhofHQcGAzC C2J+4USOT9TArEd8kIUhCh9mUCsu940TnasXPcvmhJZ6mEb7Sp73iRamY/rtVxV70ih7 2946M5Rl+j1/UNVfD2aqQoPdJexM43Z1Ig+WYQoigdiKxdZicngQz4Ut1Ea1zN1PyS3Q ZN61FYeosHHFOX+DW3CvuOh/cAT2xv4snTbivVKVhBbdpNIcCgyAYiIE7Sqe/y/yreGO +2P2K8dw+ImKmD5XSuH9FAA8wEMOvRD46PaqxKvA8RWcVdE6tqiYYbJjvZm4IqCx8aQ+ xZBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702432013; x=1703036813; 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=Pe2DRIv5xfyO7ox7fz3I3VLZ5hHexmVDHQohmjhlZCAiy4mMBGUsnWBgVCfk4ZT2UO jDmBIFAM+v5647hGOKOS4nj5T41rqddzzLaUTkjwAVbK6qopmk/fWPfITe8WHecWVJ/p Zewyxh6AETrV4kBAUqRGsaYetZ4uA2ZYGE+59ijHjFZO44yJYED1KHpKBG/4zmNUSKRo 2xujTTqAeA8ahM3IwYi4P/pAmjM/hG8k1x5qwv98FFySZkK2CmBKYmPUUHMuhjbqU3Eq aiaiFeX1714EGz6RF2kBky65oMJ3efgtY70gcxS0E+M5leRAepZf8NbDYTGuPrRG5Lqn 1+iA== X-Gm-Message-State: AOJu0Yy/36uuNZfDZatlRcbNY8PdwNfNgJ8ypOpnHuI0cJCmH2+PCje4 0VWrqrJn4hL0tyMYT/fiHAMrHWt8RlchBQs0VOUqBg== X-Google-Smtp-Source: AGHT+IG5cFIrDcaLUNFLFxpkdPWw0OjMpv1RE/DyXn0HquPixKTd8XgAPpMQBGrbgKRAxwZEbjWc4Q== X-Received: by 2002:a05:6830:1655:b0:6d9:da23:9a27 with SMTP id h21-20020a056830165500b006d9da239a27mr7297680otr.68.1702432013228; Tue, 12 Dec 2023 17:46:53 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id f7-20020aa79d87000000b006ce5b4ade28sm8988375pfq.174.2023.12.12.17.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:46:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Harman Kalra , Gagandeep Singh Subject: [PATCH 14/26] net/pfe: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:30 -0800 Message-ID: <20231213014408.612051-15-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213014408.612051-1-stephen@networkplumber.org> References: <20231213014408.612051-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