We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd8649 commit da6788eCopy full SHA for da6788e
drivers/net/can/slcan.c
@@ -365,7 +365,7 @@ static netdev_tx_t slc_xmit(struct sk_buff *skb, struct net_device *dev)
365
spin_lock(&sl->lock);
366
if (!netif_running(dev)) {
367
spin_unlock(&sl->lock);
368
- printk(KERN_WARNING "%s: xmit: iface is down\n", dev->name);
+ netdev_warn(dev, "xmit: iface is down\n");
369
goto out;
370
}
371
if (sl->tty == NULL) {
@@ -776,8 +776,7 @@ static void __exit slcan_exit(void)
776
777
sl = netdev_priv(dev);
778
if (sl->tty) {
779
- printk(KERN_ERR "%s: tty discipline still running\n",
780
- dev->name);
+ netdev_err(dev, "tty discipline still running\n");
781
782
783
unregister_netdev(dev);
0 commit comments