Skip to content

Commit 7faad1d

Browse files
sudipm-mukherjeegregkh
authored andcommitted
auxdisplay: ks0108: start using pr_*
Start using pr_* macros instead of using printk and in the process define pr_fmt. Signed-off-by: Sudip Mukherjee <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bab383d commit 7faad1d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/auxdisplay/ks0108.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
*
2424
*/
2525

26+
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
27+
2628
#include <linux/init.h>
2729
#include <linux/module.h>
2830
#include <linux/kernel.h>
@@ -132,24 +134,22 @@ static int __init ks0108_init(void)
132134

133135
ks0108_parport = parport_find_base(ks0108_port);
134136
if (ks0108_parport == NULL) {
135-
printk(KERN_ERR KS0108_NAME ": ERROR: "
136-
"parport didn't find %i port\n", ks0108_port);
137+
pr_err("ERROR: parport didn't find %i port\n", ks0108_port);
137138
goto none;
138139
}
139140

140141
ks0108_pardevice = parport_register_device(ks0108_parport, KS0108_NAME,
141142
NULL, NULL, NULL, PARPORT_DEV_EXCL, NULL);
142143
parport_put_port(ks0108_parport);
143144
if (ks0108_pardevice == NULL) {
144-
printk(KERN_ERR KS0108_NAME ": ERROR: "
145-
"parport didn't register new device\n");
145+
pr_err("ERROR: parport didn't register new device\n");
146146
goto none;
147147
}
148148

149149
result = parport_claim(ks0108_pardevice);
150150
if (result != 0) {
151-
printk(KERN_ERR KS0108_NAME ": ERROR: "
152-
"can't claim %i parport, maybe in use\n", ks0108_port);
151+
pr_err("ERROR: can't claim %i parport, maybe in use\n",
152+
ks0108_port);
153153
ret = result;
154154
goto registered;
155155
}

0 commit comments

Comments
 (0)