[PATCH 19/49] drivers/staging/mimio: Convert printks to pr_<level>
Joe Perches
joe at perches.com
Thu Oct 15 01:54:03 UTC 2009
Signed-off-by: Joe Perches <joe at perches.com>
---
drivers/staging/mimio/mimio.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/mimio/mimio.c b/drivers/staging/mimio/mimio.c
index 1ba8103..731f72c 100644
--- a/drivers/staging/mimio/mimio.c
+++ b/drivers/staging/mimio/mimio.c
@@ -42,6 +42,9 @@
* - mimio mouse not yet supported; need to snoop Win32 box to see the
* datastream for this.
*/
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
@@ -892,12 +895,11 @@ static int __init mimio_init(void)
rslt = usb_register(&mimio_driver);
if (rslt != 0) {
- err("%s: usb_register failure: %d", __func__, rslt);
+ pr_err("%s: usb_register failure: %d\n", __func__, rslt);
return rslt;
}
- printk(KERN_INFO KBUILD_MODNAME ":"
- DRIVER_DESC " " DRIVER_VERSION "\n");
+ pr_info(DRIVER_DESC " " DRIVER_VERSION "\n");
return rslt;
}
--
1.6.5.rc3.dirty
More information about the devel
mailing list