提交 4fc21543 编写于 作者: J Jarod Wilson 提交者: Mauro Carvalho Chehab

[media] lirc_dev: fixup error messages w/missing newlines

Signed-off-by: NJarod Wilson <jarod@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 8be292cc
...@@ -362,24 +362,23 @@ int lirc_unregister_driver(int minor) ...@@ -362,24 +362,23 @@ int lirc_unregister_driver(int minor)
struct irctl *ir; struct irctl *ir;
if (minor < 0 || minor >= MAX_IRCTL_DEVICES) { if (minor < 0 || minor >= MAX_IRCTL_DEVICES) {
printk(KERN_ERR "lirc_dev: lirc_unregister_driver: " printk(KERN_ERR "lirc_dev: %s: minor (%d) must be between "
"\"minor (%d)\" must be between 0 and %d!\n", "0 and %d!\n", __func__, minor, MAX_IRCTL_DEVICES-1);
minor, MAX_IRCTL_DEVICES-1);
return -EBADRQC; return -EBADRQC;
} }
ir = irctls[minor]; ir = irctls[minor];
if (!ir) { if (!ir) {
printk(KERN_ERR "lirc_dev: lirc_unregister_driver: " printk(KERN_ERR "lirc_dev: %s: failed to get irctl struct "
"failed to get irctl struct for minor %d!", minor); "for minor %d!\n", __func__, minor);
return -ENOENT; return -ENOENT;
} }
mutex_lock(&lirc_dev_lock); mutex_lock(&lirc_dev_lock);
if (ir->d.minor != minor) { if (ir->d.minor != minor) {
printk(KERN_ERR "lirc_dev: lirc_unregister_driver: " printk(KERN_ERR "lirc_dev: %s: minor (%d) device not "
"minor (%d) device not registered!", minor); "registered!\n", __func__, minor);
mutex_unlock(&lirc_dev_lock); mutex_unlock(&lirc_dev_lock);
return -ENOENT; return -ENOENT;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册