Commit b5557ef9 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: virmidi: Use standard print API

Use the standard print API with dev_*() instead of the old house-baked
one.  It gives better information and allows dynamically control of
debug prints.
Reviewed-by: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240807133452.9424-10-tiwai@suse.de
parent 4d82bf10
...@@ -83,7 +83,7 @@ static int snd_virmidi_probe(struct platform_device *devptr) ...@@ -83,7 +83,7 @@ static int snd_virmidi_probe(struct platform_device *devptr)
vmidi->card = card; vmidi->card = card;
if (midi_devs[dev] > MAX_MIDI_DEVICES) { if (midi_devs[dev] > MAX_MIDI_DEVICES) {
snd_printk(KERN_WARNING dev_warn(&devptr->dev,
"too much midi devices for virmidi %d: force to use %d\n", "too much midi devices for virmidi %d: force to use %d\n",
dev, MAX_MIDI_DEVICES); dev, MAX_MIDI_DEVICES);
midi_devs[dev] = MAX_MIDI_DEVICES; midi_devs[dev] = MAX_MIDI_DEVICES;
...@@ -155,7 +155,7 @@ static int __init alsa_card_virmidi_init(void) ...@@ -155,7 +155,7 @@ static int __init alsa_card_virmidi_init(void)
} }
if (!cards) { if (!cards) {
#ifdef MODULE #ifdef MODULE
printk(KERN_ERR "Card-VirMIDI soundcard not found or device busy\n"); pr_err("Card-VirMIDI soundcard not found or device busy\n");
#endif #endif
snd_virmidi_unregister_all(); snd_virmidi_unregister_all();
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment