Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp303618pxf; Wed, 31 Mar 2021 03:52:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt5KFV9+M7+OU85m5YtjFkxCAdrHKUywVuxslqIlubWwGxLQ74Z+Wvo1ASLmVRQE+rbLhT X-Received: by 2002:a17:906:151a:: with SMTP id b26mr2832803ejd.492.1617187959924; Wed, 31 Mar 2021 03:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617187959; cv=none; d=google.com; s=arc-20160816; b=02OJN/CJMSvnzLFBiz/7GJsKxdKDrGDhfO/oKs901O6FQeps4q3mhc8YOg9e+6nhFw uMj3lfzXhMAhnjn45+vR10ZLrYiJSWi3AC0fo+Jxa0nFfNWpsVedMWGoMu39o9wIj2DC 6BFvwUjuEIR4n9VaZKigBvDGZvCxiNKBalYC4SkAzfsDtkKt/3PfbKrs+LchTtrmVcDE HLW8Lf7FP4E1i1TllrhJotxa1vyBkBkf6gnKwVusVkCfZOEKbcrT/RYEQj0Vw+YFB57w mtbbeTjcAKgoZ3aw/qjTV+BBG3qE6ZXqHUyZlcilF57eU8FLazUZoiZUGy7KeqO9hguI CXUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cHXdvbcjPU/rpuSA2MrT6k/5I7DI9cIeYEPmrzycyzc=; b=gmkd08LtZmSSzJqbYLFTV3j1OZ5odmKn3e5o/hjSMfEd7lCK+tyZg3Lo5Yuh5Tnhmc qiM3Iq4DtiE/2EdyTBpZwQ+g18ARXYO/A6tBv/gmWutYPwaSgJi5BmYbcKo29udHAtuI XFtT9xP6CeF6N8Z8FvEZjGmCFi4bMfLGxH+/i3d2eTAd/zZp57ekmE1Hi5E2WQXkSyio aLmd6CsTDlPKs+DlF7TKadjmCoApyAD9of2ltKnlHntGU3QOLMs6ZtuAk7tY7bb8W3r8 1DI/FvOQ1JJcWUxMsVxNsl747He6jmOoBdIBCN5bBm2fq6dIhsZqkmyhswPvvKyQDYFh w9fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CrkfkOJm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si1432698edq.562.2021.03.31.03.52.16; Wed, 31 Mar 2021 03:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CrkfkOJm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235076AbhCaKsh (ORCPT + 99 others); Wed, 31 Mar 2021 06:48:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:42238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234862AbhCaKsY (ORCPT ); Wed, 31 Mar 2021 06:48:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 32B0F61987; Wed, 31 Mar 2021 10:48:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617187703; bh=O6ieHr8I3yaotirsH6KOgZ5umW1SP2G8KC8Q3s/FBmM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CrkfkOJm9RgIXO1VN6+C1viEXBsDwsNYOdzQMXxXoloFWTwB5PuWL9S4I2YS1nwuS bKqSJpAAnL1UJMU4scSudYhmT0aWoeFI1ZXPGdI1TLyG1TqfxTLonipQ6gKTGwxfu4 VKB9A9yctWy7AW47UbkxU+m1Kg9rPZWExsGUceng= Date: Wed, 31 Mar 2021 12:48:20 +0200 From: Greg KH To: Fabio Aiuto Cc: dan.carpenter@oracle.com, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/40] staging: rtl8723bs: replace RT_TRACE with public printk wrappers in core/rtw_eeprom.c Message-ID: References: <39c2cd878bc914a00e71ea988c3cacb651670822.1617183374.git.fabioaiuto83@gmail.com> <20210331103630.GA1450@agape.jhs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210331103630.GA1450@agape.jhs> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 31, 2021 at 12:36:31PM +0200, Fabio Aiuto wrote: > On Wed, Mar 31, 2021 at 12:27:20PM +0200, Greg KH wrote: > > On Wed, Mar 31, 2021 at 11:39:31AM +0200, Fabio Aiuto wrote: > > > replace private macro RT_TRACE for tracing with in-kernel > > > pr_* printk wrappers > > > > > > Signed-off-by: Fabio Aiuto > > > --- > > > drivers/staging/rtl8723bs/core/rtw_eeprom.c | 26 ++++++++++----------- > > > 1 file changed, 13 insertions(+), 13 deletions(-) > > > > > > diff --git a/drivers/staging/rtl8723bs/core/rtw_eeprom.c b/drivers/staging/rtl8723bs/core/rtw_eeprom.c > > > index 3cbd65dee741..6176d741d60e 100644 > > > --- a/drivers/staging/rtl8723bs/core/rtw_eeprom.c > > > +++ b/drivers/staging/rtl8723bs/core/rtw_eeprom.c > > > @@ -36,7 +36,7 @@ void shift_out_bits(_adapter *padapter, u16 data, u16 count) > > > _func_enter_; > > > > > > if (padapter->bSurpriseRemoved == true) { > > > - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); > > I looked at this ---------------------------------------^ > and so I thought that pr_err was good... But you missed the fact that RT_TRACE() does not always spit this stuff out. And I don't know what _drv_err_ is, but tracing messages should never go to an error log :) > my aim was remove private macros replicating component tracing and log levels... That's a great goal! > so what's best? Keep a simplyfied RT_TRACE encapsulating a dev_* call? replace them with dev_dbg() is one way, if they really are even needed at all. At this point in time, I would strongly just recommend removing them all as no one is using them for anything. thanks, greg k-h