Re: [PATCH] staging:rtl8192e: Change printk statements in rtllib_tx.c to use netdev_dev

From: Dan Carpenter
Date: Fri Apr 03 2015 - 05:20:25 EST



> @@ -582,7 +582,7 @@ int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
> IEEE_SOFTMAC_TX_QUEUE)) ||
> ((!ieee->softmac_data_hard_start_xmit &&
> (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE)))) {
> - printk(KERN_WARNING "%s: No xmit handler.\n",
> + netdev_info(ieee->dev, "%s: No xmit handler.\n",


This should be netdev_warn(). There are a few other similar places.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/