From: Jaroslav Kysela <perex@perex.cz>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Joe Perches <joe@perches.com>, Takashi Iwai <tiwai@suse.de>,
alsa-devel@alsa-project.org,
Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: Improving or replacing snd_printk()
Date: Thu, 30 May 2013 20:49:09 +0200 [thread overview]
Message-ID: <51A79F25.6040007@perex.cz> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1305301411370.1137-100000@iolanthe.rowland.org>
Date 30.5.2013 20:14, Alan Stern wrote:
> On Wed, 29 May 2013, Joe Perches wrote:
>
>> On Wed, 2013-05-29 at 15:27 -0400, Alan Stern wrote:
>>> Has there been any thought of improving snd_printk(), or even better,
>>> changing the call sites to use the dev_*() routines instead?
>>
>> Perhaps better would be to add and use some combination of
>> type specific logging message functions/macros like:
>>
>> void snd_<level>(const struct snd_device *dev, const char *fmt, ...)
>> void snd_card_<level>(const struct snd_card *card, const char *fmt, ...)
>> void snd_ac97_<level>(const struct snd_ac97 *ac97, const char *fmt, ...)
>>
>> allowing NULL as the type pointer when necessary/appropriate.
>
> Almost anything would be better than the current situation. The only
> enhancement provided by CONFIG_SND_VERBOSE_PRINTK is to print the
> filename and line number, which is relatively unhelpful (unless there
> are multiple copies of the same message in several places).
I don't think that it's useless to see the origin of the source message
from the first glance. It may be improved, of course, but adding more
and more functions with minor benefits is another step to another hell.
Jaroslav
--
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.
WARNING: multiple messages have this Message-ID (diff)
From: Jaroslav Kysela <perex@perex.cz>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Joe Perches <joe@perches.com>, Takashi Iwai <tiwai@suse.de>,
alsa-devel@alsa-project.org,
Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: [alsa-devel] Improving or replacing snd_printk()
Date: Thu, 30 May 2013 20:49:09 +0200 [thread overview]
Message-ID: <51A79F25.6040007@perex.cz> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1305301411370.1137-100000@iolanthe.rowland.org>
Date 30.5.2013 20:14, Alan Stern wrote:
> On Wed, 29 May 2013, Joe Perches wrote:
>
>> On Wed, 2013-05-29 at 15:27 -0400, Alan Stern wrote:
>>> Has there been any thought of improving snd_printk(), or even better,
>>> changing the call sites to use the dev_*() routines instead?
>>
>> Perhaps better would be to add and use some combination of
>> type specific logging message functions/macros like:
>>
>> void snd_<level>(const struct snd_device *dev, const char *fmt, ...)
>> void snd_card_<level>(const struct snd_card *card, const char *fmt, ...)
>> void snd_ac97_<level>(const struct snd_ac97 *ac97, const char *fmt, ...)
>>
>> allowing NULL as the type pointer when necessary/appropriate.
>
> Almost anything would be better than the current situation. The only
> enhancement provided by CONFIG_SND_VERBOSE_PRINTK is to print the
> filename and line number, which is relatively unhelpful (unless there
> are multiple copies of the same message in several places).
I don't think that it's useless to see the origin of the source message
from the first glance. It may be improved, of course, but adding more
and more functions with minor benefits is another step to another hell.
Jaroslav
--
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.
next prev parent reply other threads:[~2013-05-30 18:49 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 19:27 Improving or replacing snd_printk() Alan Stern
2013-05-29 19:51 ` Joe Perches
2013-05-30 18:14 ` Alan Stern
2013-05-30 18:14 ` Alan Stern
2013-05-30 18:49 ` Jaroslav Kysela [this message]
2013-05-30 18:49 ` [alsa-devel] " Jaroslav Kysela
2013-05-30 19:43 ` Alan Stern
2013-05-30 19:43 ` Alan Stern
2013-05-30 20:30 ` Joe Perches
2013-05-31 6:37 ` Takashi Iwai
2013-05-31 7:06 ` Joe Perches
2013-05-31 7:23 ` Takashi Iwai
2013-05-31 7:23 ` [alsa-devel] " Takashi Iwai
2013-05-31 7:30 ` Joe Perches
2013-05-31 7:30 ` [alsa-devel] " Joe Perches
2013-05-31 7:35 ` Takashi Iwai
2013-05-31 7:35 ` [alsa-devel] " Takashi Iwai
2013-05-31 7:38 ` Joe Perches
2013-05-31 7:58 ` Takashi Iwai
2013-05-31 7:58 ` [alsa-devel] " Takashi Iwai
2013-05-31 14:24 ` Alan Stern
2013-05-31 14:24 ` [alsa-devel] " Alan Stern
2013-05-31 14:34 ` Takashi Iwai
2013-05-31 14:34 ` [alsa-devel] " Takashi Iwai
2013-05-31 15:33 ` Alan Stern
2013-05-31 15:33 ` [alsa-devel] " Alan Stern
2013-05-31 15:38 ` Takashi Iwai
2013-05-31 15:38 ` Takashi Iwai
2013-05-31 17:06 ` Joe Perches
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=51A79F25.6040007@perex.cz \
--to=perex@perex.cz \
--cc=alsa-devel@alsa-project.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=tiwai@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.