drivers: usb: atm: use pr_err() and pr_warn() instead of raw printk()
authorEnrico Weigelt, metux IT consult <info@metux.net>
Tue, 8 Dec 2020 09:32:06 +0000 (10:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 14:22:51 +0000 (15:22 +0100)
Since we have the nice helpers pr_err() and pr_warn(), use them instead
of raw printk().

Acked-by: Duncan Sands <duncan.sands@free.fr>
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Link: https://lore.kernel.org/r/20201208093206.24780-3-info@metux.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/atm/usbatm.c
drivers/usb/atm/xusbatm.c

index f49792f951ab649bbb812ecdb2480ccffcb44e7d..33ae03ac13a687e389f3babc7e9b3e49175705c1 100644 (file)
@@ -1278,7 +1278,7 @@ EXPORT_SYMBOL_GPL(usbatm_usb_disconnect);
 static int __init usbatm_usb_init(void)
 {
        if (sizeof(struct usbatm_control) > sizeof_field(struct sk_buff, cb)) {
-               printk(KERN_ERR "%s unusable with this kernel!\n", usbatm_driver_name);
+               pr_err("%s unusable with this kernel!\n", usbatm_driver_name);
                return -EIO;
        }
 
index ffc9810070a3f697903a5eca57d43b93e92ffc4a..0befbf63d1cc832a83ed2217164dfb8b8773aa97 100644 (file)
@@ -179,7 +179,7 @@ static int __init xusbatm_init(void)
            num_vendor != num_product ||
            num_vendor != num_rx_endpoint ||
            num_vendor != num_tx_endpoint) {
-               printk(KERN_WARNING "xusbatm: malformed module parameters\n");
+               pr_warn("xusbatm: malformed module parameters\n");
                return -EINVAL;
        }