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 C2358439BA; Thu, 25 Jan 2024 04:06:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44C5A4027B; Thu, 25 Jan 2024 04:06:58 +0100 (CET) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by mails.dpdk.org (Postfix) with ESMTP id 1075840275 for ; Thu, 25 Jan 2024 04:06:55 +0100 (CET) Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4TL5LP6dx4z18KL3; Thu, 25 Jan 2024 11:05:49 +0800 (CST) Received: from dggpeml500024.china.huawei.com (unknown [7.185.36.10]) by mail.maildlp.com (Postfix) with ESMTPS id 801C8180080; Thu, 25 Jan 2024 11:06:38 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 25 Jan 2024 11:06:38 +0800 Subject: Re: [PATCH] lib: remove duplicate prefix in logs To: David Marchand , CC: Thomas Monjalon , Kevin Laatz , Bruce Richardson , Elena Agostini , Jerin Jacob , Kiran Kumar K , Nithin Dabilpuram , Zhirun Yan , Pavan Nikhilesh , Ciara Power , Maxime Coquelin , Chenbo Xia , Andrew Rybchenko References: <20240124120450.546364-1-david.marchand@redhat.com> From: fengchengwen Message-ID: <4f3459e7-dcaa-66b6-6625-6c8752eee922@huawei.com> Date: Thu, 25 Jan 2024 11:06:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20240124120450.546364-1-david.marchand@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500024.china.huawei.com (7.185.36.10) 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 For dmadev part Reviewed-by: Chengwen Feng Thanks On 2024/1/24 20:04, David Marchand wrote: > RTE_LOG() macros prefixe the log messages based on the logtype. > This results in logs like: > > TMTY: TELEMETRY: Attempting socket bind to path '/run/user/...' > TMTY: TELEMETRY: Socket creation and binding ok > TMTY: TELEMETRY: Telemetry initialized ok > > Remove redundancy in some libraries following their conversion to > RTE_LOG/RTE_LOG_LINE. > > Fixes: 97433132c2ed ("lib: use per line logging in helpers") > Fixes: 0e21c7c07d62 ("lib: replace logging helpers") > > Reported-by: Thomas Monjalon > Signed-off-by: David Marchand > --- > lib/dmadev/rte_dmadev.c | 3 +-- > lib/gpudev/gpudev.c | 3 +-- > lib/graph/graph_private.h | 2 +- > lib/node/node_private.h | 2 +- > lib/telemetry/telemetry.c | 4 ++-- > lib/vhost/vhost.h | 6 +++--- > 6 files changed, 9 insertions(+), 11 deletions(-) > > diff --git a/lib/dmadev/rte_dmadev.c b/lib/dmadev/rte_dmadev.c > index 5953a77bd6..dbaa14f262 100644 > --- a/lib/dmadev/rte_dmadev.c > +++ b/lib/dmadev/rte_dmadev.c > @@ -35,8 +35,7 @@ RTE_LOG_REGISTER_DEFAULT(rte_dma_logtype, INFO); > #define RTE_LOGTYPE_DMA rte_dma_logtype > > #define RTE_DMA_LOG(level, ...) \ > - RTE_LOG_LINE(level, DMA, RTE_FMT("dma: " RTE_FMT_HEAD(__VA_ARGS__ ,), \ > - RTE_FMT_TAIL(__VA_ARGS__ ,))) > + RTE_LOG_LINE(level, DMA, "" __VA_ARGS__) > > int > rte_dma_dev_max(size_t dev_max) ...