summaryrefslogtreecommitdiffstats
path: root/sound/drivers
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-08-07 15:33:59 +0200
committerTakashi Iwai <tiwai@suse.de>2024-08-08 07:47:23 +0200
commitb5557ef985301d7ca2ba08f8e9c22ba4f8c30d5d (patch)
treef5e1759141c00439ad1dfaf762dcf34895dad1de /sound/drivers
parent4d82bf10d1625d4b19443af1aaeca2b4202e0334 (diff)
downloadlinux-stable-b5557ef985301d7ca2ba08f8e9c22ba4f8c30d5d.tar.gz
linux-stable-b5557ef985301d7ca2ba08f8e9c22ba4f8c30d5d.tar.bz2
linux-stable-b5557ef985301d7ca2ba08f8e9c22ba4f8c30d5d.zip
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: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20240807133452.9424-10-tiwai@suse.de
Diffstat (limited to 'sound/drivers')
-rw-r--r--sound/drivers/virmidi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c
index 58012de90c38..5f7b65ad63e3 100644
--- a/sound/drivers/virmidi.c
+++ b/sound/drivers/virmidi.c
@@ -83,9 +83,9 @@ static int snd_virmidi_probe(struct platform_device *devptr)
vmidi->card = card;
if (midi_devs[dev] > MAX_MIDI_DEVICES) {
- snd_printk(KERN_WARNING
- "too much midi devices for virmidi %d: force to use %d\n",
- dev, MAX_MIDI_DEVICES);
+ dev_warn(&devptr->dev,
+ "too much midi devices for virmidi %d: force to use %d\n",
+ dev, MAX_MIDI_DEVICES);
midi_devs[dev] = MAX_MIDI_DEVICES;
}
for (idx = 0; idx < midi_devs[dev]; idx++) {
@@ -155,7 +155,7 @@ static int __init alsa_card_virmidi_init(void)
}
if (!cards) {
#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
snd_virmidi_unregister_all();
return -ENODEV;