diff options
| author | Takashi Iwai <tiwai@suse.de> | 2024-08-07 15:33:56 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2024-08-08 07:47:22 +0200 |
| commit | a2fa882d6dea19b4488b10f40334e04c77503ffc (patch) | |
| tree | 1bde38a8cfb40f17680ed3cfea596c7fb34fafa8 /sound/drivers/opl3/opl3_synth.c | |
| parent | 1e594f9a7ba8bac7dd8e5bdd74cd786e0e00246c (diff) | |
ALSA: opl3: 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 debug prints are cleaned up with a macro, too.
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240807133452.9424-7-tiwai@suse.de
Diffstat (limited to 'sound/drivers/opl3/opl3_synth.c')
| -rw-r--r-- | sound/drivers/opl3/opl3_synth.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/drivers/opl3/opl3_synth.c b/sound/drivers/opl3/opl3_synth.c index 97d30a833ac8..10f622b439a0 100644 --- a/sound/drivers/opl3/opl3_synth.c +++ b/sound/drivers/opl3/opl3_synth.c @@ -158,10 +158,8 @@ int snd_opl3_ioctl(struct snd_hwdep * hw, struct file *file, return 0; #endif -#ifdef CONFIG_SND_DEBUG default: - snd_printk(KERN_WARNING "unknown IOCTL: 0x%x\n", cmd); -#endif + dev_dbg(opl3->card->dev, "unknown IOCTL: 0x%x\n", cmd); } return -ENOTTY; } |