提交 2b8dec32 编写于 作者: G Greg Kroah-Hartman

USB: driver.c: remove err() usage

err() was a very old USB-specific macro that I thought had
gone away.  This patch removes it from being used in the
driver and uses dev_err() instead.

CC: Markus Grabner <grabner@icg.tugraz.at>
CC: Stefan Hajnoczi <stefanha@gmail.com>
CC: Julia Lawall <julia@diku.dk>
CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c2705c0d
...@@ -1307,7 +1307,8 @@ static int __init line6_init(void) ...@@ -1307,7 +1307,8 @@ static int __init line6_init(void)
retval = usb_register(&line6_driver); retval = usb_register(&line6_driver);
if (retval) { if (retval) {
err("usb_register failed. Error number %d", retval); printk(KERN_ERR KBUILD_MODNAME
": usb_register failed. Error number %d\n", retval);
return retval; return retval;
} }
...@@ -1315,7 +1316,7 @@ static int __init line6_init(void) ...@@ -1315,7 +1316,7 @@ static int __init line6_init(void)
GFP_KERNEL); GFP_KERNEL);
if (line6_request_version == NULL) { if (line6_request_version == NULL) {
err("Out of memory"); printk(KERN_ERR KBUILD_MODNAME ":Out of memory\n");
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册