ALSA: rawmidi: Use rawmidi device file for kernel messages
... instead of card's device. This will be helpful to distinguish errors from multiple rawmidi devices on a single card. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
aee5012fbb
commit
07cc3e8bd5
|
@ -57,11 +57,11 @@ static LIST_HEAD(snd_rawmidi_devices);
|
|||
static DEFINE_MUTEX(register_mutex);
|
||||
|
||||
#define rmidi_err(rmidi, fmt, args...) \
|
||||
dev_err((rmidi)->card->dev, fmt, ##args)
|
||||
dev_err(&(rmidi)->dev, fmt, ##args)
|
||||
#define rmidi_warn(rmidi, fmt, args...) \
|
||||
dev_warn((rmidi)->card->dev, fmt, ##args)
|
||||
dev_warn(&(rmidi)->dev, fmt, ##args)
|
||||
#define rmidi_dbg(rmidi, fmt, args...) \
|
||||
dev_dbg((rmidi)->card->dev, fmt, ##args)
|
||||
dev_dbg(&(rmidi)->dev, fmt, ##args)
|
||||
|
||||
static struct snd_rawmidi *snd_rawmidi_search(struct snd_card *card, int device)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue