Commit 5a8da02b authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[NET]: Fix network device interface printk message priority

The printk's in the network device interface code should all be tagged
with severity.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 120bda20
...@@ -1727,7 +1727,7 @@ static int ing_filter(struct sk_buff *skb) ...@@ -1727,7 +1727,7 @@ static int ing_filter(struct sk_buff *skb)
if (dev->qdisc_ingress) { if (dev->qdisc_ingress) {
__u32 ttl = (__u32) G_TC_RTTL(skb->tc_verd); __u32 ttl = (__u32) G_TC_RTTL(skb->tc_verd);
if (MAX_RED_LOOP < ttl++) { if (MAX_RED_LOOP < ttl++) {
printk("Redir loop detected Dropping packet (%s->%s)\n", printk(KERN_WARNING "Redir loop detected Dropping packet (%s->%s)\n",
skb->input_dev->name, skb->dev->name); skb->input_dev->name, skb->dev->name);
return TC_ACT_SHOT; return TC_ACT_SHOT;
} }
...@@ -2922,7 +2922,7 @@ int register_netdevice(struct net_device *dev) ...@@ -2922,7 +2922,7 @@ int register_netdevice(struct net_device *dev)
/* Fix illegal SG+CSUM combinations. */ /* Fix illegal SG+CSUM combinations. */
if ((dev->features & NETIF_F_SG) && if ((dev->features & NETIF_F_SG) &&
!(dev->features & NETIF_F_ALL_CSUM)) { !(dev->features & NETIF_F_ALL_CSUM)) {
printk("%s: Dropping NETIF_F_SG since no checksum feature.\n", printk(KERN_NOTICE "%s: Dropping NETIF_F_SG since no checksum feature.\n",
dev->name); dev->name);
dev->features &= ~NETIF_F_SG; dev->features &= ~NETIF_F_SG;
} }
...@@ -2930,7 +2930,7 @@ int register_netdevice(struct net_device *dev) ...@@ -2930,7 +2930,7 @@ int register_netdevice(struct net_device *dev)
/* TSO requires that SG is present as well. */ /* TSO requires that SG is present as well. */
if ((dev->features & NETIF_F_TSO) && if ((dev->features & NETIF_F_TSO) &&
!(dev->features & NETIF_F_SG)) { !(dev->features & NETIF_F_SG)) {
printk("%s: Dropping NETIF_F_TSO since no SG feature.\n", printk(KERN_NOTICE "%s: Dropping NETIF_F_TSO since no SG feature.\n",
dev->name); dev->name);
dev->features &= ~NETIF_F_TSO; dev->features &= ~NETIF_F_TSO;
} }
......
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