netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] eliminate useless divert message
@ 2004-04-07 16:29 Benjamin LaHaise
  0 siblings, 0 replies; only message in thread
From: Benjamin LaHaise @ 2004-04-07 16:29 UTC (permalink / raw)
  To: netdev

[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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-07 16:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-07 16:29 [PATCH] eliminate useless divert message Benjamin LaHaise

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).