31 May
2013
31 May
'13
7:06 p.m.
On Fri, 2013-05-31 at 16:34 +0200, Takashi Iwai wrote:
Also, another expected problem is that neither card->card_dev nor card->dev are set when snd_card_err() is called. Many drivers set the device pointers at the late stage just before the device registration. So, systematic replacements won't work as expected in many cases. (The same is applied for replacement with dev_*(), too.)
If all the pointers are null, then the logging function could use pr_<level> and %pf, __builtin_return_addr() or another method to look up the module name.