mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 09:13:38 +00:00
ALSA: dummy: Use standard print API
Use pr_*() macro instead of open-coded printk() just for code simplification. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20240807133452.9424-14-tiwai@suse.de
This commit is contained in:
parent
ca2f73ffaa
commit
650dcf25e1
@ -1033,8 +1033,7 @@ static int snd_dummy_probe(struct platform_device *devptr)
|
|||||||
dummy->card = card;
|
dummy->card = card;
|
||||||
for (mdl = dummy_models; *mdl && model[dev]; mdl++) {
|
for (mdl = dummy_models; *mdl && model[dev]; mdl++) {
|
||||||
if (strcmp(model[dev], (*mdl)->name) == 0) {
|
if (strcmp(model[dev], (*mdl)->name) == 0) {
|
||||||
printk(KERN_INFO
|
pr_info("snd-dummy: Using model '%s' for card %i\n",
|
||||||
"snd-dummy: Using model '%s' for card %i\n",
|
|
||||||
(*mdl)->name, card->number);
|
(*mdl)->name, card->number);
|
||||||
m = dummy->model = *mdl;
|
m = dummy->model = *mdl;
|
||||||
break;
|
break;
|
||||||
@ -1168,7 +1167,7 @@ static int __init alsa_card_dummy_init(void)
|
|||||||
}
|
}
|
||||||
if (!cards) {
|
if (!cards) {
|
||||||
#ifdef MODULE
|
#ifdef MODULE
|
||||||
printk(KERN_ERR "Dummy soundcard not found or device busy\n");
|
pr_err("Dummy soundcard not found or device busy\n");
|
||||||
#endif
|
#endif
|
||||||
snd_dummy_unregister_all();
|
snd_dummy_unregister_all();
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
Loading…
Reference in New Issue
Block a user