can: slcan: slcan_init() convert printk(LEVEL ...) to pr_level()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 3 Jul 2022 09:21:13 +0000 (11:21 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 19 Jul 2022 18:30:14 +0000 (20:30 +0200)
Convert the last printk(LEVEL ...) to pr_level().

Link: https://lore.kernel.org/all/20220704125954.1587880-3-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/slcan/slcan-core.c

index 2d3bf15..ead3afe 100644 (file)
@@ -1057,7 +1057,7 @@ static int __init slcan_init(void)
        /* Fill in our line protocol discipline, and register it */
        status = tty_register_ldisc(&slc_ldisc);
        if (status)  {
-               printk(KERN_ERR "slcan: can't register line discipline\n");
+               pr_err("slcan: can't register line discipline\n");
                kfree(slcan_devs);
        }
        return status;