Prev: drivers/net/bfin_mac.c: Misc function cleanups, neatening
Next: [PATCH V3 1/5] Package Level Thermal Control and Power Limit Notification: enable features
From: Mike Frysinger on 29 Jul 2010 20:20 On Thu, Jul 29, 2010 at 19:58, Joe Perches wrote: > Add and use pr_fmt, pr_<level> and netdev_<level> your changelog says add pr_fmt, but i dont see it in the patch ... > @@ -833,8 +830,7 @@ static void bfin_tx_hwtstamp(struct net_device *netdev, struct sk_buff *skb) > Â Â Â Â Â Â Â Â Â Â Â (--timeout_cnt)) > Â Â Â Â Â Â Â Â Â Â Â Â udelay(1); > Â Â Â Â Â Â Â Â if (timeout_cnt == 0) > - Â Â Â Â Â Â Â Â Â Â Â printk(KERN_ERR DRV_NAME > - Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ": fails to timestamp the TX packet\n"); > + Â Â Â Â Â Â Â Â Â Â Â pr_err("failed to timestamp the TX packet\n"); this func has a net_device, so cant you use netdev_err here ? > @@ -1102,8 +1097,7 @@ static void bfin_mac_rx(struct net_device *dev) > > Â Â Â Â new_skb = dev_alloc_skb(PKT_BUF_SZ + NET_IP_ALIGN); > Â Â Â Â if (!new_skb) { > - Â Â Â Â Â Â Â printk(KERN_NOTICE DRV_NAME > - Â Â Â Â Â Â Â Â Â Â Â ": rx: low on mem - packet dropped\n"); > + Â Â Â Â Â Â Â pr_notice("rx: low on mem - packet dropped\n"); same here otherwise this patch looks good -mike |