summaryrefslogtreecommitdiff
path: root/sound/isa/sb/emu8000_synth.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-08-07 15:34:20 +0200
committerTakashi Iwai <tiwai@suse.de>2024-08-08 07:49:46 +0200
commitb8986876e7196941c9723065e893af1a6528ecee (patch)
tree28cd3c5c3590b4edc1598315a3c486f14c6acd76 /sound/isa/sb/emu8000_synth.c
parent40b15de3c4f23994f53f930e94939c7b6a0cc52f (diff)
ALSA: sb: 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. Some functions are changed to receive snd_card pointer for referring to the device pointer for dev_*() calls, too. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20240807133452.9424-31-tiwai@suse.de
Diffstat (limited to 'sound/isa/sb/emu8000_synth.c')
-rw-r--r--sound/isa/sb/emu8000_synth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/sb/emu8000_synth.c b/sound/isa/sb/emu8000_synth.c
index 0edfb6875278..9bec85ec55b4 100644
--- a/sound/isa/sb/emu8000_synth.c
+++ b/sound/isa/sb/emu8000_synth.c
@@ -45,7 +45,7 @@ static int snd_emu8000_probe(struct device *_dev)
emu->num_ports = hw->seq_ports;
if (hw->memhdr) {
- snd_printk(KERN_ERR "memhdr is already initialized!?\n");
+ dev_err(hw->card->dev, "memhdr is already initialized!?\n");
snd_util_memhdr_free(hw->memhdr);
}
hw->memhdr = snd_util_memhdr_new(hw->mem_size);