You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PRINTK_ERROR() + KERN_ERR_MWAVE are just wrappers around printk() with
a prefix. Instead, pr_fmt() can be used. Drop the former and use the
latter.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20251119091949.825958-6-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
"smapi::smapi_set_DSP_cfg: Serial port A irq %x conflicts with mwave_uart_irq %x\n", usSI&0xFF, mwave_uart_irq);
255
+
pr_err("%s: Serial port A irq %x conflicts with mwave_uart_irq %x\n",
256
+
__func__, usSI&0xFF, mwave_uart_irq);
251
257
goto exit_conflict;
252
258
} else {
253
259
if ((usSI >> 8) ==uartio_index) {
254
-
PRINTK_ERROR(KERN_ERR_MWAVE
255
-
"smapi::smapi_set_DSP_cfg: Serial port A base I/O address %x conflicts with mwave uart I/O %x\n", ausUartBases[usSI >> 8], ausUartBases[uartio_index]);
260
+
pr_err("%s: Serial port A base I/O address %x conflicts with mwave uart I/O %x\n",
261
+
__func__, ausUartBases[usSI >> 8],
262
+
ausUartBases[uartio_index]);
256
263
goto exit_conflict;
257
264
}
258
265
}
@@ -267,13 +274,14 @@ int smapi_set_DSP_cfg(void)
267
274
if (usBX&0x0100) { /* serial port B is present */
268
275
if (usCX&1) { /* serial port is enabled */
269
276
if ((usSI&0xFF) ==mwave_uart_irq) {
270
-
PRINTK_ERROR(KERN_ERR_MWAVE
271
-
"smapi::smapi_set_DSP_cfg: Serial port B irq %x conflicts with mwave_uart_irq %x\n", usSI&0xFF, mwave_uart_irq);
277
+
pr_err("%s: Serial port B irq %x conflicts with mwave_uart_irq %x\n",
278
+
__func__, usSI&0xFF, mwave_uart_irq);
272
279
goto exit_conflict;
273
280
} else {
274
281
if ((usSI >> 8) ==uartio_index) {
275
-
PRINTK_ERROR(KERN_ERR_MWAVE
276
-
"smapi::smapi_set_DSP_cfg: Serial port B base I/O address %x conflicts with mwave uart I/O %x\n", ausUartBases[usSI >> 8], ausUartBases[uartio_index]);
282
+
pr_err("%s: Serial port B base I/O address %x conflicts with mwave uart I/O %x\n",
283
+
__func__, ausUartBases[usSI >> 8],
284
+
ausUartBases[uartio_index]);
277
285
goto exit_conflict;
278
286
}
279
287
}
@@ -290,13 +298,14 @@ int smapi_set_DSP_cfg(void)
290
298
/* bRC == 0 */
291
299
if ((usCX&0xff) !=0xff) { /* IR port not disabled */
292
300
if ((usCX&0xff) ==mwave_uart_irq) {
293
-
PRINTK_ERROR(KERN_ERR_MWAVE
294
-
"smapi::smapi_set_DSP_cfg: IR port irq %x conflicts with mwave_uart_irq %x\n", usCX&0xff, mwave_uart_irq);
301
+
pr_err("%s: IR port irq %x conflicts with mwave_uart_irq %x\n",
302
+
__func__, usCX&0xff, mwave_uart_irq);
295
303
goto exit_conflict;
296
304
} else {
297
305
if ((usSI&0xff) ==uartio_index) {
298
-
PRINTK_ERROR(KERN_ERR_MWAVE
299
-
"smapi::smapi_set_DSP_cfg: IR port base I/O address %x conflicts with mwave uart I/O %x\n", ausUartBases[usSI&0xff], ausUartBases[uartio_index]);
306
+
pr_err("%s: IR port base I/O address %x conflicts with mwave uart I/O %x\n",
307
+
__func__, ausUartBases[usSI&0xff],
308
+
ausUartBases[uartio_index]);
300
309
goto exit_conflict;
301
310
}
302
311
}
@@ -348,7 +357,7 @@ int smapi_set_DSP_cfg(void)
348
357
return-EIO;
349
358
350
359
exit_smapi_request_error:
351
-
PRINTK_ERROR(KERN_ERR_MWAVE"smapi::smapi_set_DSP_cfg exit on smapi_request error bRC %x\n", bRC);
360
+
pr_err("%s: exit on smapi_request error bRC %x\n", __func__, bRC);
352
361
returnbRC;
353
362
}
354
363
@@ -381,13 +390,13 @@ int smapi_init(void)
381
390
g_usSmapiPort |= (CMOS_READ(0x7F) << 8);
382
391
spin_unlock_irqrestore(&rtc_lock, flags);
383
392
if (g_usSmapiPort==0) {
384
-
PRINTK_ERROR("smapi::smapi_init, ERROR unable to read from SMAPI port\n");
393
+
pr_err("%s: ERROR unable to read from SMAPI port\n", __func__);
0 commit comments