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 3F891436D8; Wed, 13 Dec 2023 02:44:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AB0842E77; Wed, 13 Dec 2023 02:44:17 +0100 (CET) Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by mails.dpdk.org (Postfix) with ESMTP id 3610842E47 for ; Wed, 13 Dec 2023 02:44:14 +0100 (CET) Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-6d9f4eed60eso3697698a34.1 for ; Tue, 12 Dec 2023 17:44:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702431853; x=1703036653; 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=YawgjInfgY4YPNZsaxNs4gVBeFg8otxGkTP44ZubLEA=; b=ucDoRjRXDh9RpfMpycaDdfh9hLjMCHsAhiRtJESBZ7gMH5kkggpv+rMtcY8uzlB9/o aM6JM3nC73irGu5Ung+mNZHsxxFftUHcKec/s6tPtmdkYI8MnCMOarWVy2cMfVEs2mSL R+X3FuNvX2VA0avfqKjEGBWQkksxBQY/MqE5oanVFWUH3slVe4qt6iEdRLVHEETVbWs+ NC/uJa4v/gpOLIXGsNzIwF08FLLKY2BopSGc/D8IUhKtqpBnp3THGjFb4abPFJrGw97/ kwrRh4oNQTPLnxOHHGb/lLv3+pQCEbB84p+m9Yre+keDRcK17q71RhpYgteV1viXGCLg EsgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702431853; x=1703036653; 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=YawgjInfgY4YPNZsaxNs4gVBeFg8otxGkTP44ZubLEA=; b=MFrG1uzZQQdI84FwSgzAGhDI3QKKNmInARNVpi2/HqxTXZPwcu8/5VtQR3iFhiAs2t F+pOiXHwvm1pthsVobcXoJu2UERTMcRYLLZt+1fF9bbum/B+BYsVMg+7cofCYEM9gZH8 tQ69hxkyIHQ8rvyiKq+c1kApO7M69eWqshDY1Anx3iVxJwf7LMJmMyGvTFuxCA4o/sx+ A4edfmDT4gUprJhZ2Jpmgf85zVLJzicHpkfb3ck3JgYCK94G8rg3hNDI1uJFWoD2HfwT hi5MxE8GnU37rBmiKraczDZvCddDL9hxTcMMN7FRV3gzgs9qnKZaNN94mL9JweigtKUK rWyA== X-Gm-Message-State: AOJu0Yx7+rR42KJwmM0aftGn4OxGrmQz5n8B9p4Ry49PKm4XMp51OKQz SsVi3hNSDtHw5EGSW6tsi69E0+JuBJkqFo0kCNej9A== X-Google-Smtp-Source: AGHT+IH1nTBkXgjr9t0ZOwKVNVKXoBLZebddUmAwPeQhdK1oFqNlT9YIci2vikBXonMqh+AC6Z6oQg== X-Received: by 2002:a9d:6f96:0:b0:6d8:74e2:8a5d with SMTP id h22-20020a9d6f96000000b006d874e28a5dmr6739236otq.60.1702431853646; Tue, 12 Dec 2023 17:44:13 -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.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:44:13 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Igor Russkikh Subject: [PATCH 03/26] net/atlantic: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:19 -0800 Message-ID: <20231213014408.612051-4-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/atlantic/atl_logs.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/net/atlantic/atl_logs.h b/drivers/net/atlantic/atl_logs.h index e3dba334fe92..c2a3a6320c58 100644 --- a/drivers/net/atlantic/atl_logs.h +++ b/drivers/net/atlantic/atl_logs.h @@ -14,18 +14,19 @@ extern int atl_logtype_init; #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") -#define PMD_RX_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, "%s(): " fmt "\n", __func__, ## args) - -#define PMD_TX_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, "%s(): " fmt "\n", __func__, ## args) - extern int atl_logtype_driver; #define PMD_DRV_LOG_RAW(level, fmt, args...) \ rte_log(RTE_LOG_ ## level, atl_logtype_driver, "%s(): " fmt, \ __func__, ## args) #define PMD_DRV_LOG(level, fmt, args...) \ - PMD_DRV_LOG_RAW(level, fmt "\n", ## args) + rte_log_dp(RTE_LOG_ ## level, atl_logtype_driver, fmt "\n", \ + ## args) + +#define PMD_RX_LOG(level, fmt, args...) \ + PMD_DRV_LOG(level, fmt, ## args) + +#define PMD_TX_LOG(level, fmt, args...) \ + PMD_DRV_LOG(level, fmt, ## args) #endif -- 2.42.0