From 1bcb275df3a47d15042059ec856776b7d1c2bd3f Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Sun, 6 Oct 2002 15:31:13 -0700 Subject: [PATCH] net/core/dev.c: Print lethal dev/protocol errors with KERN_CRIT. --- net/core/dev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index a1f8b13b0898..cb92c7dd4bb1 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -904,8 +904,8 @@ void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev) if (skb2->nh.raw < skb2->data || skb2->nh.raw > skb2->tail) { if (net_ratelimit()) - printk(KERN_DEBUG "protocol %04x is " - "buggy, dev %s\n", + printk(KERN_CRIT "protocol %04x is " + "buggy, dev %s\n", skb2->protocol, dev->name); skb2->nh.raw = skb2->data; } @@ -1062,14 +1062,14 @@ int dev_queue_xmit(struct sk_buff *skb) dev->xmit_lock_owner = -1; spin_unlock_bh(&dev->xmit_lock); if (net_ratelimit()) - printk(KERN_DEBUG "Virtual device %s asks to " + printk(KERN_CRIT "Virtual device %s asks to " "queue packet!\n", dev->name); goto out_enetdown; } else { /* Recursion is detected! It is possible, * unfortunately */ if (net_ratelimit()) - printk(KERN_DEBUG "Dead loop on virtual device " + printk(KERN_CRIT "Dead loop on virtual device " "%s, fix it urgently!\n", dev->name); } } -- 2.39.5