From: Takashi Iwai <tiwai@suse.de>
To: Joe Perches <joe@perches.com>
Cc: Jaroslav Kysela <perex@perex.cz>,
Alan Stern <stern@rowland.harvard.edu>,
alsa-devel@alsa-project.org,
Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: [alsa-devel] Improving or replacing snd_printk()
Date: Fri, 31 May 2013 09:58:45 +0200 [thread overview]
Message-ID: <s5ha9nbinre.wl%tiwai@suse.de> (raw)
In-Reply-To: <1369985881.10556.54.camel@joe-AO722>
At Fri, 31 May 2013 00:38:01 -0700,
Joe Perches wrote:
>
> On Fri, 2013-05-31 at 09:35 +0200, Takashi Iwai wrote:
> > At Fri, 31 May 2013 00:30:09 -0700, Joe Perches wrote:
> > > On Fri, 2013-05-31 at 09:23 +0200, Takashi Iwai wrote:
> > > > At Fri, 31 May 2013 00:06:07 -0700, Joe Perches wrote:
> > > > > On Fri, 2013-05-31 at 08:37 +0200, Takashi Iwai wrote:
> > > > > > I think most of snd_printd() and snd_printdd() can be kept as is.
> > > > > > These are just debug messages, after all.
> > > > > Some of those are emitted at levels other than KERN_DEBUG.
> > > > > I think that odd.
> > > > Yeah, they aren't good, but it's a different topic.
> > >
> > > Not really, I think it's systemic and fallout from
> > > accretive implementation rather than design.
> >
> > Maybe.
> >
> > But you shouldn't mix up with the fix for the missing verbosity and
> > the fix for wrong KERN_ prefix, at least, in the patch level. They
> > need to be fixed individually.
>
> I think that's best too.
>
> I don't see the complexity/hell in adding functions
> for specific types of struct * to reduce the complexity
> of the code though. Centralizing those indirections
> into functions also generally reduces overall code size.
I don't mind to add the struct pointer to new snd_*() -- if we really
introduce them. The bigger question is whether we really need to
introduce such, and if yes, what variants. And for that, I don't
think we need to add many functions. Maybe snd_card_<level>() would
be good. But others don't seem to make sense to me (remember that I
suggest dropping CONFIG_SND_VERBOSE_PRINTK).
Takashi
next prev parent reply other threads:[~2013-05-31 7:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 19:27 Alan Stern
2013-05-29 19:51 ` Joe Perches
2013-05-30 18:14 ` Alan Stern
2013-05-30 18:49 ` [alsa-devel] " Jaroslav Kysela
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:30 ` Joe Perches
2013-05-31 7:35 ` Takashi Iwai
2013-05-31 7:38 ` Joe Perches
2013-05-31 7:58 ` Takashi Iwai [this message]
2013-05-31 14:24 ` Alan Stern
2013-05-31 14:34 ` Takashi Iwai
2013-05-31 15:33 ` Alan Stern
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=s5ha9nbinre.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=stern@rowland.harvard.edu \
/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
all inboxes | Powered by JetHome®