From: Takashi Iwai <tiwai@suse.de>
To: jack1989s@gmail.com
Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Sound:last.c: fix code syle trailing white space - modify printk()->netdev_dbg() - Possible unnecessary KERN_INFO removed
Date: Mon, 08 May 2023 09:37:56 +0200 [thread overview]
Message-ID: <87y1lze0iz.wl-tiwai@suse.de> (raw)
In-Reply-To: <20230507130021.48112-1-jack1989s@gmail.com>
On Sun, 07 May 2023 15:00:21 +0200,
jack1989s@gmail.com wrote:
>
> From: Federico Di Lembo <jack1989s@gmail.com>
>
> Fixing coding style.
>
> Signed-off-by: Federico Di Lembo <jack1989s@gmail.com>
In general, we don't take a patch just for white space without any
real need. Please do a cleanup together with other real fix or
enhancement patches.
Also, the use of netdev_dbg() doesn't make sense here at all; the code
has nothing to do with the network.
Last but not least, you change the printk level by the conversion
silently. It's really bad, please don't. If you have to change the
printk level, give the convincing explanation.
thanks,
Takashi
> ---
> sound/last.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/sound/last.c b/sound/last.c
> index f0bb98780e70..b8cfd6ded95d 100644
> --- a/sound/last.c
> +++ b/sound/last.c
> @@ -11,18 +11,18 @@ static int __init alsa_sound_last_init(void)
> {
> struct snd_card *card;
> int idx, ok = 0;
> -
> - printk(KERN_INFO "ALSA device list:\n");
> +
> + netdev_dbg("ALSA device list:\n");
> for (idx = 0; idx < SNDRV_CARDS; idx++) {
> card = snd_card_ref(idx);
> if (card) {
> - printk(KERN_INFO " #%i: %s\n", idx, card->longname);
> + netdev_dbg(" #%i: %s\n", idx, card->longname);
> snd_card_unref(card);
> ok++;
> }
> }
> if (ok == 0)
> - printk(KERN_INFO " No soundcards found.\n");
> + netdev_dbg(" No soundcards found.\n");
> return 0;
> }
>
> --
> 2.34.1
>
prev parent reply other threads:[~2023-05-08 7:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-07 13:00 [PATCH] Sound:last.c: fix code syle trailing white space - modify printk()->netdev_dbg() - Possible unnecessary KERN_INFO removed jack1989s
2023-05-07 16:47 ` kernel test robot
2023-05-08 7:37 ` Takashi Iwai [this message]
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=87y1lze0iz.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=jack1989s@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/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