From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F7EB5F for ; Thu, 1 Apr 2021 09:10:36 +0000 (UTC) Received: by mail-ed1-f50.google.com with SMTP id z1so1108235edb.8 for ; Thu, 01 Apr 2021 02:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Yz2uAKOVLdpCA/W96Sc6EEUFc6Wo0dIgN6QEihppNbU=; b=oP2NBqVlju7vp7m3LOckHhHUNKDd8Gs1hyGYYuC8qp8KKvkqPNRZr2919RIaAqwHmE pyhI2njrQ0Qrng16SoNECX+nTQ1LVjQKlIFL4zqeYjwZ8PLi+8rvl5Cmv2gFg5NFWzbq 1mjeFTV6McE5oq1kBCbtAu24I2j/6Obrl5+XTY4vDvSsZtXnoMQfm7gqOPH3H72S6Iwl 64BsE/H81Tj05PAj4wNn/vA9SZAaeGlrpCNYAGki7qaPz8rM6DExTxIXsZazi89svYvI hsDmrTNdaOdXOM9/Y6/kagIqTIKWwQi1PrL3nnkNzafFruoZ/+Y8laUbQJpzubxVq8Fe VNSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Yz2uAKOVLdpCA/W96Sc6EEUFc6Wo0dIgN6QEihppNbU=; b=Zc1Q7RhUUzqn05SuYohsC1BDSATdlPmIBKsPxz5tGquqlKFnHEdWyPt5V3ouisHpEL szx3y6xobu/nnyNHMHiuKar1K420W1WjvUjOqg+y+7DLKeoNwYX3xMAUixqwv8qHJgJe xYCWc6Lgzcjx/sOMJUUyN+INTt1N9dcRo5GZXvIVVUnT7kWkZlySoZ4rgWWLOLun8yGS sBQNqB/V3QLpUpY966p+ldooNv3DLplnuee5k4wZ4C80bL/TwHIGWLuwMJUoKQubhZ7O bKL0QCvKPzYzAhRWSk6zhvLqHLqMBDiM2zl1D4oewF/M3Ak1YrHDhYiEmBmLtgjYX4ai NzNg== X-Gm-Message-State: AOAM530BKfiGDyYmq6hMq1f0xmtenYPUSX2vpP7nseZSQrgivhEedflD V7V+WiHwjSr0weSG66Hp9YE8OvCjXzk6dw== X-Google-Smtp-Source: ABdhPJw1S3zpHxMQiBjiNx+pagbqT+Wfo4r87kEY2b1AnuTXs9AiCq0fD44o1oKRvPoHwfkWkP5L9A== X-Received: by 2002:a50:f747:: with SMTP id j7mr8490344edn.338.1617268235222; Thu, 01 Apr 2021 02:10:35 -0700 (PDT) Received: from agape.jhs ([5.171.80.247]) by smtp.gmail.com with ESMTPSA id d1sm2491932eje.26.2021.04.01.02.10.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 02:10:34 -0700 (PDT) Date: Thu, 1 Apr 2021 11:10:32 +0200 From: Fabio Aiuto To: Greg KH Cc: joe@perches.com, dan.carpenter@oracle.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: <20210401091031.GB1442@agape.jhs> References: <39c2cd878bc914a00e71ea988c3cacb651670822.1617183374.git.fabioaiuto83@gmail.com> <20210331105551.GB1450@agape.jhs> X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) On Wed, Mar 31, 2021 at 01:14:18PM +0200, Greg KH wrote: > On Wed, Mar 31, 2021 at 12:55:51PM +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")); > > > > + pr_err("%s padapter->bSurpriseRemoved==true", DRIVER_PREFIX); > > > > > > As Dan said, this is not the same thing. You are now always printing > > > out this mess, when before you were not unless you explicitly enabled > > > "tracing". > > > > RT_TRACE is enabled if is defined the symbol DEBUG_RTL871X. It doesn't seem to be related > > to tracing. DEBUG_RTL871X is never declared, is commented out in rtl8723bs/include/autoconf.h > > That's a good sign this is never used and should just all be removed. > > > that's why RT_TRACE is never printed. If we try to uncomment the symbol definition we have some > > comiling errors.. > > What errors do you get? > > > > And you are sending it to the error log? > > > > > > And finally, drivers should never be using pr_*() for messages, they > > > should be using dev_*() instead as they are a driver and have access to > > > a device pointer. > > > > > > thanks, > > > > > > greg k-h > > > > I still wonder what's best... > > Just delete them all please, they are obviously not used as no one > rebuilds the source just for this type of thing. > > thanks, > > greg k-h Hi Greg, I will send a brand new patchset, not a v2, for the pourpose is changed. Thank you, fabio