Commit 736f5d0a authored by Toshiaki Yamane's avatar Toshiaki Yamane Committed by Greg Kroah-Hartman

staging/vme: Use pr_ printks in vme_pio2_core.c

The below checkpatch warnings was fixed,

-WARNING: Prefer pr_err(... to printk(KERN_ERR, ...

and added pr_fmt.
Signed-off-by: default avatarToshiaki Yamane <yamanetoshi@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 538a697a
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
* option) any later version. * option) any later version.
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/types.h> #include <linux/types.h>
...@@ -163,15 +165,13 @@ static int __init pio2_init(void) ...@@ -163,15 +165,13 @@ static int __init pio2_init(void)
int retval = 0; int retval = 0;
if (bus_num == 0) { if (bus_num == 0) {
printk(KERN_ERR "%s: No cards, skipping registration\n", pr_err("No cards, skipping registration\n");
driver_name);
goto err_nocard; goto err_nocard;
} }
if (bus_num > PIO2_CARDS_MAX) { if (bus_num > PIO2_CARDS_MAX) {
printk(KERN_ERR pr_err("Driver only able to handle %d PIO2 Cards\n",
"%s: Driver only able to handle %d PIO2 Cards\n", PIO2_CARDS_MAX);
driver_name, PIO2_CARDS_MAX);
bus_num = PIO2_CARDS_MAX; bus_num = PIO2_CARDS_MAX;
} }
......
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