Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp289764pxf; Wed, 31 Mar 2021 03:29:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUxsoVy1jj2Hz2pLGLL+g00odoRcgDMVP64Vi0nRv8I0DTPrtsjf4BXsvLJ/FPr+5w3/oD X-Received: by 2002:a17:906:a049:: with SMTP id bg9mr2800466ejb.186.1617186584208; Wed, 31 Mar 2021 03:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617186584; cv=none; d=google.com; s=arc-20160816; b=X65l01Vr0BbGyaJOyHhnd7hKU62D44jSW4NHCNyriUyg3LRdk1DnxPvRYyiSQO2hJd EklW6a4XW5lu6cFsnoRru+8Di2Ms9A0kc2fe9bLfuhdd+byD/kHVFnTnGcRX/eTSVkc9 xD9yGmj/vpwEc+B3sOHP8x7T6rP57fhhJc/NG82MQbwYYUaqIQs1xHAV7yEMPxbwpPbP Sh90mFYxL/AgOFwXdOYihLoPbBUnbORQV50Ng4gU+GwNfju1uJBw5Qq0lhlg3qmAWWVd GqPdgl1aq6vCh3k2U+oB5o/4FsDTikRY0Yi2MQ+0yDSwscMdb87MZDuaYLGVMa4IlaRj gX7g== 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=9WE2NTCoVsjC1uMWWvS58DgyxXjpLFnsshjsn14JvCs=; b=M+lQ4kdaDSgo1M1V8IqzKnI4Z8jd3ZN8lxvgozLwEKEE4l1IzCc8WyyaOCn79X9Lyk b35CVENz7RlnpMu3gOx/TTivQgPSv+I8JTVTdUGeIuABfFl0ikPulNsN6dw2moe8eF6m 8QnubT2oj9jD7NnqtKv47+nh4S/pPEjIxsN3vMqJr5t7uJfTmFaWz5fIiFGDv8BmeP3c eHbRpyHuj92q0doASyH9dKDZ+8gFllS0h9jNrKDtzE/1CVGrj33kPUhFL10b0KrC2zny h0AxdC8Mm29iuxk9P4ctX/wN3E9xNV0X/TdGq8isQyuY866C05RrIzuPCGeBgsZkK2SI tBvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o9ACvFXj; 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 ks7si1274619ejb.682.2021.03.31.03.29.20; Wed, 31 Mar 2021 03:29:44 -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=o9ACvFXj; 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 S234996AbhCaK13 (ORCPT + 99 others); Wed, 31 Mar 2021 06:27:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:38322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234545AbhCaK1X (ORCPT ); Wed, 31 Mar 2021 06:27:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3ED1061985; Wed, 31 Mar 2021 10:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617186442; bh=At+KgA3+yqtYvjyHzeiOYBunO6Ha+W24cy9kRqbtE14=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o9ACvFXjLPyr6CUODgOstCfZ60GfhvGKEArB2wH+vHXEbQg2zvoB7toAXDbKqyxRM cU5P5QQJ8pKq+ybmQyeIpcjWcU5wsaAeNZvBx/LjjhNQs4MRxgSEv8CQZpnc91ROoD VTWXEHFJ49tI+PBuYhKbmeRLhyJTiVhCC+lTM40E= Date: Wed, 31 Mar 2021 12:27:20 +0200 From: Greg KH To: Fabio Aiuto Cc: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39c2cd878bc914a00e71ea988c3cacb651670822.1617183374.git.fabioaiuto83@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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". 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