Commit ba7052f5 authored by Enrico Weigelt, metux IT consult's avatar Enrico Weigelt, metux IT consult Committed by Greg Kroah-Hartman

drivers: usb: atm: use pr_err() and pr_warn() instead of raw printk()

Since we have the nice helpers pr_err() and pr_warn(), use them instead
of raw printk().
Acked-by: default avatarDuncan Sands <duncan.sands@free.fr>
Signed-off-by: default avatarEnrico Weigelt, metux IT consult <info@metux.net>
Link: https://lore.kernel.org/r/20201208093206.24780-3-info@metux.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6d4e3866
...@@ -1278,7 +1278,7 @@ EXPORT_SYMBOL_GPL(usbatm_usb_disconnect); ...@@ -1278,7 +1278,7 @@ EXPORT_SYMBOL_GPL(usbatm_usb_disconnect);
static int __init usbatm_usb_init(void) static int __init usbatm_usb_init(void)
{ {
if (sizeof(struct usbatm_control) > sizeof_field(struct sk_buff, cb)) { 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; return -EIO;
} }
......
...@@ -179,7 +179,7 @@ static int __init xusbatm_init(void) ...@@ -179,7 +179,7 @@ static int __init xusbatm_init(void)
num_vendor != num_product || num_vendor != num_product ||
num_vendor != num_rx_endpoint || num_vendor != num_rx_endpoint ||
num_vendor != num_tx_endpoint) { num_vendor != num_tx_endpoint) {
printk(KERN_WARNING "xusbatm: malformed module parameters\n"); pr_warn("xusbatm: malformed module parameters\n");
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment