From: Dan Carpenter <dan.carpenter@linaro.org>
To: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com>
Cc: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com,
~lkcamp/patches@lists.sr.ht, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] staging: rtl8723bs: change remaining printk to proper api
Date: Tue, 15 Oct 2024 12:42:06 +0300 [thread overview]
Message-ID: <d20087fc-586e-4a52-99e6-6a09b33ed00e@stanley.mountain> (raw)
In-Reply-To: <20241015014738.41685-2-rodrigo.gobbi.7@gmail.com>
On Mon, Oct 14, 2024 at 10:47:37PM -0300, Rodrigo Gobbi wrote:
> As part of TODO file for future work, use dyn debug api for
> remaining printk statements.
>
> Signed-off-by: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com>
> ---
> drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 6 +++---
> drivers/staging/rtl8723bs/hal/hal_com.c | 7 ++++---
> drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 10 ++++++----
> drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2 +-
> 4 files changed, 14 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
> index bbdd5fce28a1..58da34f125db 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
> @@ -1870,10 +1870,10 @@ unsigned int OnAction_sa_query(struct adapter *padapter, union recv_frame *precv
> if (0) {
> int pp;
>
> - printk("pattrib->pktlen = %d =>", pattrib->pkt_len);
> + pr_debug("pattrib->pktlen = %d =>", pattrib->pkt_len);
> for (pp = 0; pp < pattrib->pkt_len; pp++)
> - printk(" %02x ", pframe[pp]);
> - printk("\n");
> + pr_debug(" %02x ", pframe[pp]);
> + pr_debug("\n");
No, this isn't right. You'd need to use a mix of dev_dbg() and pr_cont().
Basically in drivers it should always be dev_ printks except for pr_cont().
regards,
dan carpenter
next prev parent reply other threads:[~2024-10-15 9:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 1:47 [PATCH 0/2] staging: rtl8723bs: change remaining printk to proper api and remove commented code Rodrigo Gobbi
2024-10-15 1:47 ` [PATCH 1/2] staging: rtl8723bs: change remaining printk to proper api Rodrigo Gobbi
2024-10-15 9:42 ` Dan Carpenter [this message]
2024-10-15 21:38 ` Rodrigo Gobbi
2024-10-16 8:00 ` Greg KH
2024-10-15 1:47 ` [PATCH 2/2] staging: rtl8723bs: remove unused debug statements Rodrigo Gobbi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d20087fc-586e-4a52-99e6-6a09b33ed00e@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=philipp.g.hortmann@gmail.com \
--cc=rodrigo.gobbi.7@gmail.com \
--cc=~lkcamp/patches@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox