aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-26 19:30:46 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 19:19:57 -0400
commit28f47c34c75222abefac95a5740b246e065de35f (patch)
tree20b0593f0912c4fd4db180fc4e4ab23ddcadb493 /drivers
parent1ef37c6047fef8b65d62aa908d9795101b5244d6 (diff)
USB: adutux: remove direct calls to printk()
Use the pr_* calls instead, which are much more descriptive. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/misc/adutux.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c
index 2a4793647580..7078e9bf0fc0 100644
--- a/drivers/usb/misc/adutux.c
+++ b/drivers/usb/misc/adutux.c
@@ -18,6 +18,8 @@
18 * 18 *
19 */ 19 */
20 20
21#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
22
21#include <linux/kernel.h> 23#include <linux/kernel.h>
22#include <linux/errno.h> 24#include <linux/errno.h>
23#include <linux/init.h> 25#include <linux/init.h>
@@ -236,8 +238,8 @@ static int adu_open(struct inode *inode, struct file *file)
236 238
237 interface = usb_find_interface(&adu_driver, subminor); 239 interface = usb_find_interface(&adu_driver, subminor);
238 if (!interface) { 240 if (!interface) {
239 printk(KERN_ERR "adutux: %s - error, can't find device for " 241 pr_err("%s - error, can't find device for minor %d\n",
240 "minor %d\n", __func__, subminor); 242 __func__, subminor);
241 retval = -ENODEV; 243 retval = -ENODEV;
242 goto exit_no_device; 244 goto exit_no_device;
243 } 245 }
@@ -357,8 +359,7 @@ static ssize_t adu_read(struct file *file, __user char *buffer, size_t count,
357 /* verify that the device wasn't unplugged */ 359 /* verify that the device wasn't unplugged */
358 if (dev->udev == NULL) { 360 if (dev->udev == NULL) {
359 retval = -ENODEV; 361 retval = -ENODEV;
360 printk(KERN_ERR "adutux: No device or device unplugged %d\n", 362 pr_err("No device or device unplugged %d\n", retval);
361 retval);
362 goto exit; 363 goto exit;
363 } 364 }
364 365
@@ -527,8 +528,7 @@ static ssize_t adu_write(struct file *file, const __user char *buffer,
527 /* verify that the device wasn't unplugged */ 528 /* verify that the device wasn't unplugged */
528 if (dev->udev == NULL) { 529 if (dev->udev == NULL) {
529 retval = -ENODEV; 530 retval = -ENODEV;
530 printk(KERN_ERR "adutux: No device or device unplugged %d\n", 531 pr_err("No device or device unplugged %d\n", retval);
531 retval);
532 goto exit; 532 goto exit;
533 } 533 }
534 534