diff options
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 2a1871942317..7a10f0894152 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -36,6 +36,8 @@ | |||
36 | * The functions in this file will not compile correctly with gcc 2.4.x | 36 | * The functions in this file will not compile correctly with gcc 2.4.x |
37 | */ | 37 | */ |
38 | 38 | ||
39 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
40 | |||
39 | #include <linux/module.h> | 41 | #include <linux/module.h> |
40 | #include <linux/types.h> | 42 | #include <linux/types.h> |
41 | #include <linux/kernel.h> | 43 | #include <linux/kernel.h> |
@@ -118,11 +120,10 @@ static const struct pipe_buf_operations sock_pipe_buf_ops = { | |||
118 | */ | 120 | */ |
119 | static void skb_over_panic(struct sk_buff *skb, int sz, void *here) | 121 | static void skb_over_panic(struct sk_buff *skb, int sz, void *here) |
120 | { | 122 | { |
121 | printk(KERN_EMERG "skb_over_panic: text:%p len:%d put:%d head:%p " | 123 | pr_emerg("%s: text:%p len:%d put:%d head:%p data:%p tail:%#lx end:%#lx dev:%s\n", |
122 | "data:%p tail:%#lx end:%#lx dev:%s\n", | 124 | __func__, here, skb->len, sz, skb->head, skb->data, |
123 | here, skb->len, sz, skb->head, skb->data, | 125 | (unsigned long)skb->tail, (unsigned long)skb->end, |
124 | (unsigned long)skb->tail, (unsigned long)skb->end, | 126 | skb->dev ? skb->dev->name : "<NULL>"); |
125 | skb->dev ? skb->dev->name : "<NULL>"); | ||
126 | BUG(); | 127 | BUG(); |
127 | } | 128 | } |
128 | 129 | ||
@@ -137,11 +138,10 @@ static void skb_over_panic(struct sk_buff *skb, int sz, void *here) | |||
137 | 138 | ||
138 | static void skb_under_panic(struct sk_buff *skb, int sz, void *here) | 139 | static void skb_under_panic(struct sk_buff *skb, int sz, void *here) |
139 | { | 140 | { |
140 | printk(KERN_EMERG "skb_under_panic: text:%p len:%d put:%d head:%p " | 141 | pr_emerg("%s: text:%p len:%d put:%d head:%p data:%p tail:%#lx end:%#lx dev:%s\n", |
141 | "data:%p tail:%#lx end:%#lx dev:%s\n", | 142 | __func__, here, skb->len, sz, skb->head, skb->data, |
142 | here, skb->len, sz, skb->head, skb->data, | 143 | (unsigned long)skb->tail, (unsigned long)skb->end, |
143 | (unsigned long)skb->tail, (unsigned long)skb->end, | 144 | skb->dev ? skb->dev->name : "<NULL>"); |
144 | skb->dev ? skb->dev->name : "<NULL>"); | ||
145 | BUG(); | 145 | BUG(); |
146 | } | 146 | } |
147 | 147 | ||