| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] eliminate useless divert message |
| From: | Benjamin LaHaise <bcrl@xxxxxxxxx> |
| Date: | Wed, 7 Apr 2004 12:29:12 -0400 |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
[sorry if this is a dupe, but the original wasn't going through.]
Hello folks,
Debugging some ppp code has made me truely despise divert's log messages.
This patch deletes both the allocate and delete printks.
-ben
--
"Time is what keeps everything from happening all at once." -- John Wheeler
===== net/core/dv.c 1.9 vs edited =====
--- 1.9/net/core/dv.c Sun Sep 28 19:47:07 2003
+++ edited/net/core/dv.c Tue Apr 6 22:17:12 2004
@@ -53,9 +53,6 @@
int alloc_size = (sizeof(struct divert_blk) + 3) & ~3;
if (dev->type == ARPHRD_ETHER) {
- printk(KERN_DEBUG "divert: allocating divert_blk for %s\n",
- dev->name);
-
dev->divert = (struct divert_blk *)
kmalloc(alloc_size, GFP_KERNEL);
if (dev->divert == NULL) {
@@ -67,9 +64,6 @@
}
dev_hold(dev);
} else {
- printk(KERN_DEBUG "divert: not allocating divert_blk for
non-ethernet device %s\n",
- dev->name);
-
dev->divert = NULL;
}
return 0;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: route cache DoS testing and softirqs, Robert Olsson |
|---|---|
| Next by Date: | [PATCH][ATM]: [nicstar] using dev_alloc_skb() (reported by "Johnston, Jayme" <Jayme.Johnston@xxxxxxxxxxx>), chas williams (contractor) |
| Previous by Thread: | [PATCH][ATM]: get atm_guess_pdu2truesize() right, chas williams (contractor) |
| Next by Thread: | [PATCH][ATM]: [nicstar] using dev_alloc_skb() (reported by "Johnston, Jayme" <Jayme.Johnston@xxxxxxxxxxx>), chas williams (contractor) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |