Commit 8d928477 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: serio_raw - use dev_*() for messages

This will ensure our reporting is consistent with the rest of the system.
Reviewed-by: default avatarWanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 8c31eb01
...@@ -279,7 +279,7 @@ static int serio_raw_connect(struct serio *serio, struct serio_driver *drv) ...@@ -279,7 +279,7 @@ static int serio_raw_connect(struct serio *serio, struct serio_driver *drv)
int err; int err;
if (!(serio_raw = kzalloc(sizeof(struct serio_raw), GFP_KERNEL))) { if (!(serio_raw = kzalloc(sizeof(struct serio_raw), GFP_KERNEL))) {
printk(KERN_ERR "serio_raw.c: can't allocate memory for a device\n"); dev_dbg(&serio->dev, "can't allocate memory for a device\n");
return -ENOMEM; return -ENOMEM;
} }
...@@ -311,12 +311,13 @@ static int serio_raw_connect(struct serio *serio, struct serio_driver *drv) ...@@ -311,12 +311,13 @@ static int serio_raw_connect(struct serio *serio, struct serio_driver *drv)
} }
if (err) { if (err) {
printk(KERN_INFO "serio_raw: failed to register raw access device for %s\n", dev_err(&serio->dev,
"failed to register raw access device for %s\n",
serio->phys); serio->phys);
goto out_close; goto out_close;
} }
printk(KERN_INFO "serio_raw: raw access enabled on %s (%s, minor %d)\n", dev_info(&serio->dev, "raw access enabled on %s (%s, minor %d)\n",
serio->phys, serio_raw->name, serio_raw->dev.minor); serio->phys, serio_raw->name, serio_raw->dev.minor);
goto out; goto out;
...@@ -337,7 +338,8 @@ static int serio_raw_reconnect(struct serio *serio) ...@@ -337,7 +338,8 @@ static int serio_raw_reconnect(struct serio *serio)
struct serio_driver *drv = serio->drv; struct serio_driver *drv = serio->drv;
if (!drv || !serio_raw) { if (!drv || !serio_raw) {
printk(KERN_DEBUG "serio_raw: reconnect request, but serio is disconnected, ignoring...\n"); dev_dbg(&serio->dev,
"reconnect request, but serio is disconnected, ignoring...\n");
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment