diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-04 18:18:16 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-14 08:14:14 +0100 |
commit | bb00945749c544670d30d9eaee2494da50af6b6e (patch) | |
tree | 13088c6e4436cfb97e30433b2d2db21c1047637a /sound/core/control_compat.c | |
parent | a67ca25b6cc6d2f3f24aebf1c83af3db28b5e304 (diff) | |
download | op-kernel-dev-bb00945749c544670d30d9eaee2494da50af6b6e.zip op-kernel-dev-bb00945749c544670d30d9eaee2494da50af6b6e.tar.gz |
ALSA: control: Use standard printk helpers
Use dev_err() & co as much as possible. If not available (no device
assigned at the calling point), use pr_xxx() helpers instead.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/control_compat.c')
-rw-r--r-- | sound/core/control_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/control_compat.c b/sound/core/control_compat.c index 2bb95a7..b9c0910 100644 --- a/sound/core/control_compat.c +++ b/sound/core/control_compat.c @@ -247,7 +247,7 @@ static int copy_ctl_value_from_user(struct snd_card *card, } else { size = get_elem_size(type, count); if (size < 0) { - printk(KERN_ERR "snd_ioctl32_ctl_elem_value: unknown type %d\n", type); + dev_err(card->dev, "snd_ioctl32_ctl_elem_value: unknown type %d\n", type); return -EINVAL; } if (copy_from_user(data->value.bytes.data, |