Commit c68d7248 authored by Chen Zhou's avatar Chen Zhou Committed by David S. Miller

drivers: net: cisco_hdlc: use __func__ in debug message

Use __func__ to print the function name instead of hard coded string.
BTW, replace printk(KERN_DEBUG, ...) with netdev_dbg.
Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10332dc2
...@@ -75,7 +75,7 @@ static int cisco_hard_header(struct sk_buff *skb, struct net_device *dev, ...@@ -75,7 +75,7 @@ static int cisco_hard_header(struct sk_buff *skb, struct net_device *dev,
{ {
struct hdlc_header *data; struct hdlc_header *data;
#ifdef DEBUG_HARD_HEADER #ifdef DEBUG_HARD_HEADER
printk(KERN_DEBUG "%s: cisco_hard_header called\n", dev->name); netdev_dbg(dev, "%s called\n", __func__);
#endif #endif
skb_push(skb, sizeof(struct hdlc_header)); skb_push(skb, sizeof(struct hdlc_header));
...@@ -101,7 +101,7 @@ static void cisco_keepalive_send(struct net_device *dev, u32 type, ...@@ -101,7 +101,7 @@ static void cisco_keepalive_send(struct net_device *dev, u32 type,
skb = dev_alloc_skb(sizeof(struct hdlc_header) + skb = dev_alloc_skb(sizeof(struct hdlc_header) +
sizeof(struct cisco_packet)); sizeof(struct cisco_packet));
if (!skb) { if (!skb) {
netdev_warn(dev, "Memory squeeze on cisco_keepalive_send()\n"); netdev_warn(dev, "Memory squeeze on %s()\n", __func__);
return; return;
} }
skb_reserve(skb, 4); skb_reserve(skb, 4);
......
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