Commit da6788ea authored by Dario Binacchi's avatar Dario Binacchi Committed by Marc Kleine-Budde
Browse files

can: slcan: use netdev helpers to print out messages

parent 3cd86490
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -365,7 +365,7 @@ static netdev_tx_t slc_xmit(struct sk_buff *skb, struct net_device *dev)
	spin_lock(&sl->lock);
	if (!netif_running(dev))  {
		spin_unlock(&sl->lock);
		printk(KERN_WARNING "%s: xmit: iface is down\n", dev->name);
		netdev_warn(dev, "xmit: iface is down\n");
		goto out;
	}
	if (sl->tty == NULL) {
@@ -776,8 +776,7 @@ static void __exit slcan_exit(void)

		sl = netdev_priv(dev);
		if (sl->tty) {
			printk(KERN_ERR "%s: tty discipline still running\n",
			       dev->name);
			netdev_err(dev, "tty discipline still running\n");
		}

		unregister_netdev(dev);