mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Improving or replacing snd_printk()
@ 2013-05-29 19:27 Alan Stern
  2013-05-29 19:51 ` Joe Perches
  0 siblings, 1 reply; 18+ messages in thread
From: Alan Stern @ 2013-05-29 19:27 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Kernel development list

Takashi:

Messages produced by snd_printk() aren't as informative as they could
be -- especially when CONFIG_SND_VERBOSE_PRINTK isn't enabled, which is
the case on most systems.

The routine uses printk() rather then dev_dbg(), dev_info(), or
dev_err().  As a result, the messages don't say what driver or device
is involved.  We just get something like:

[15919.883604] cannot submit urb (err = -18)

That's not much help to anybody.  If you didn't know what an urb was, 
you wouldn't even realize that this referred to a USB device.  And if 
you had multiple USB audio devices, you wouldn't know which one it 
referred to.

Has there been any thought of improving snd_printk(), or even better,
changing the call sites to use the dev_*() routines instead?

Alan Stern


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-05-31 17:06 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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: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
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

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®