|
23 | 23 | * |
24 | 24 | */ |
25 | 25 |
|
| 26 | +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| 27 | + |
26 | 28 | #include <linux/init.h> |
27 | 29 | #include <linux/module.h> |
28 | 30 | #include <linux/kernel.h> |
@@ -132,24 +134,22 @@ static int __init ks0108_init(void) |
132 | 134 |
|
133 | 135 | ks0108_parport = parport_find_base(ks0108_port); |
134 | 136 | 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); |
137 | 138 | goto none; |
138 | 139 | } |
139 | 140 |
|
140 | 141 | ks0108_pardevice = parport_register_device(ks0108_parport, KS0108_NAME, |
141 | 142 | NULL, NULL, NULL, PARPORT_DEV_EXCL, NULL); |
142 | 143 | parport_put_port(ks0108_parport); |
143 | 144 | 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"); |
146 | 146 | goto none; |
147 | 147 | } |
148 | 148 |
|
149 | 149 | result = parport_claim(ks0108_pardevice); |
150 | 150 | 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); |
153 | 153 | ret = result; |
154 | 154 | goto registered; |
155 | 155 | } |
|
0 commit comments