netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch: add loglevel to printk's in net/ipv4/route.c
@ 2004-12-29  2:01 Jesper Juhl
  2004-12-29  2:02 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 9+ messages in thread
From: Jesper Juhl @ 2004-12-29  2:01 UTC (permalink / raw)
  To: Networking Team
  Cc: linux-net, David S. Miller, Alexey Kuznetsov, linux-kernel


Small patch below adds loglevels to a few printk's in net/ipv4/route.c


Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>

diff -up linux-2.6.10-orig/net/ipv4/route.c linux-2.6.10/net/ipv4/route.c
--- linux-2.6.10-orig/net/ipv4/route.c	2004-12-24 22:35:40.000000000 +0100
+++ linux-2.6.10/net/ipv4/route.c	2004-12-29 02:55:03.000000000 +0100
@@ -889,8 +889,8 @@ restart:
 		printk(KERN_DEBUG "rt_cache @%02x: %u.%u.%u.%u", hash,
 		       NIPQUAD(rt->rt_dst));
 		for (trt = rt->u.rt_next; trt; trt = trt->u.rt_next)
-			printk(" . %u.%u.%u.%u", NIPQUAD(trt->rt_dst));
-		printk("\n");
+			printk(KERN_DEBUG " . %u.%u.%u.%u", NIPQUAD(trt->rt_dst));
+		printk(KERN_DEBUG "\n");
 	}
 #endif
 	rt_hash_table[hash].chain = rt;
@@ -1802,11 +1802,11 @@ martian_source:
 			unsigned char *p = skb->mac.raw;
 			printk(KERN_WARNING "ll header: ");
 			for (i = 0; i < dev->hard_header_len; i++, p++) {
-				printk("%02x", *p);
+				printk(KERN_WARNING "%02x", *p);
 				if (i < (dev->hard_header_len - 1))
 					printk(":");
 			}
-			printk("\n");
+			printk(KERN_WARNING "\n");
 		}
 	}
 #endif




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Patch: add loglevel to printk's in net/ipv4/route.c
  2004-12-29  2:01 Patch: add loglevel to printk's in net/ipv4/route.c Jesper Juhl
@ 2004-12-29  2:02 ` Arnaldo Carvalho de Melo
  2004-12-29  2:13   ` Jesper Juhl
  0 siblings, 1 reply; 9+ messages in thread
From: Arnaldo Carvalho de Melo @ 2004-12-29  2:02 UTC (permalink / raw)
  To: Jesper Juhl
  Cc: Networking Team, linux-net, David S. Miller, Alexey Kuznetsov,
	linux-kernel

Jesper Juhl wrote:
> Small patch below adds loglevels to a few printk's in net/ipv4/route.c
> 
> 
> Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
> 
> diff -up linux-2.6.10-orig/net/ipv4/route.c linux-2.6.10/net/ipv4/route.c
> --- linux-2.6.10-orig/net/ipv4/route.c	2004-12-24 22:35:40.000000000 +0100
> +++ linux-2.6.10/net/ipv4/route.c	2004-12-29 02:55:03.000000000 +0100
> @@ -889,8 +889,8 @@ restart:
>  		printk(KERN_DEBUG "rt_cache @%02x: %u.%u.%u.%u", hash,
>  		       NIPQUAD(rt->rt_dst));
>  		for (trt = rt->u.rt_next; trt; trt = trt->u.rt_next)
> -			printk(" . %u.%u.%u.%u", NIPQUAD(trt->rt_dst));
> -		printk("\n");
> +			printk(KERN_DEBUG " . %u.%u.%u.%u", NIPQUAD(trt->rt_dst));
> +		printk(KERN_DEBUG "\n");
>  	}
>  #endif
>  	rt_hash_table[hash].chain = rt;
> @@ -1802,11 +1802,11 @@ martian_source:
>  			unsigned char *p = skb->mac.raw;
>  			printk(KERN_WARNING "ll header: ");
>  			for (i = 0; i < dev->hard_header_len; i++, p++) {
> -				printk("%02x", *p);
> +				printk(KERN_WARNING "%02x", *p);
>  				if (i < (dev->hard_header_len - 1))
>  					printk(":");
>  			}
> -			printk("\n");
> +			printk(KERN_WARNING "\n");


Are you sure the output is much improved? ;)

- Arnaldo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Patch: add loglevel to printk's in net/ipv4/route.c
  2004-12-29  2:13   ` Jesper Juhl
@ 2004-12-29  2:10     ` Arnaldo Carvalho de Melo
  2004-12-29  2:12       ` Jörn Engel
  0 siblings, 1 reply; 9+ messages in thread
From: Arnaldo Carvalho de Melo @ 2004-12-29  2:10 UTC (permalink / raw)
  To: Jesper Juhl
  Cc: Networking Team, linux-net, David S. Miller, Alexey Kuznetsov,
	linux-kernel



Jesper Juhl wrote:
> On Wed, 29 Dec 2004, Arnaldo Carvalho de Melo wrote:
> 
> 
>>Jesper Juhl wrote:
>>
>>>Small patch below adds loglevels to a few printk's in net/ipv4/route.c
>>>
> 
> [...]
> 
>>Are you sure the output is much improved? ;)
>>
> 
> It doesn't make much difference, it's mostly for completeness/correctness.

No, it does a helluva difference, give it a try :-)

- Arnaldo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Patch: add loglevel to printk's in net/ipv4/route.c
  2004-12-29  2:10     ` Arnaldo Carvalho de Melo
@ 2004-12-29  2:12       ` Jörn Engel
  2004-12-29  2:23         ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 9+ messages in thread
From: Jörn Engel @ 2004-12-29  2:12 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Jesper Juhl, Networking Team, linux-net, David S. Miller,
	Alexey Kuznetsov, linux-kernel

On Wed, 29 December 2004 00:10:22 -0200, Arnaldo Carvalho de Melo wrote:
> >
> >It doesn't make much difference, it's mostly for completeness/correctness.
> 
> No, it does a helluva difference, give it a try :-)

hint: look for "\n"

Jörn

-- 
It is better to die of hunger having lived without grief and fear,
than to live with a troubled spirit amid abundance.
-- Epictetus

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Patch: add loglevel to printk's in net/ipv4/route.c
  2004-12-29  2:02 ` Arnaldo Carvalho de Melo
@ 2004-12-29  2:13   ` Jesper Juhl
  2004-12-29  2:10     ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 9+ messages in thread
From: Jesper Juhl @ 2004-12-29  2:13 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Jesper Juhl, Networking Team, linux-net, David S. Miller,
	Alexey Kuznetsov, linux-kernel

On Wed, 29 Dec 2004, Arnaldo Carvalho de Melo wrote:

> Jesper Juhl wrote:
> > Small patch below adds loglevels to a few printk's in net/ipv4/route.c
> > 
[...]
> 
> Are you sure the output is much improved? ;)
> 
It doesn't make much difference, it's mostly for completeness/correctness.


-- 
Jesper


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Patch: add loglevel to printk's in net/ipv4/route.c
  2004-12-29  2:12       ` Jörn Engel
@ 2004-12-29  2:23         ` Arnaldo Carvalho de Melo
  2004-12-29  2:46           ` Jesper Juhl
  0 siblings, 1 reply; 9+ messages in thread
From: Arnaldo Carvalho de Melo @ 2004-12-29  2:23 UTC (permalink / raw)
  To: Jörn Engel
  Cc: Jesper Juhl, Networking Team, linux-net, David S. Miller,
	Alexey Kuznetsov, linux-kernel



Jörn Engel wrote:
> On Wed, 29 December 2004 00:10:22 -0200, Arnaldo Carvalho de Melo wrote:
> 
>>>It doesn't make much difference, it's mostly for completeness/correctness.
>>
>>No, it does a helluva difference, give it a try :-)
> 
> 
> hint: look for "\n"

hint2: Or the _lack_ of "\n" 8)

- Arnaldo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Patch: add loglevel to printk's in net/ipv4/route.c
  2004-12-29  2:23         ` Arnaldo Carvalho de Melo
@ 2004-12-29  2:46           ` Jesper Juhl
  2004-12-29 23:39             ` Jesper Juhl
  0 siblings, 1 reply; 9+ messages in thread
From: Jesper Juhl @ 2004-12-29  2:46 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Jörn Engel, Jesper Juhl, Networking Team, linux-net,
	David S. Miller, Alexey Kuznetsov, linux-kernel

On Wed, 29 Dec 2004, Arnaldo Carvalho de Melo wrote:

> 
> 
> Jörn Engel wrote:
> > On Wed, 29 December 2004 00:10:22 -0200, Arnaldo Carvalho de Melo wrote:
> > 
> > > > It doesn't make much difference, it's mostly for
> > > > completeness/correctness.
> > > 
> > > No, it does a helluva difference, give it a try :-)
> > 
> > 
> > hint: look for "\n"
> 
> hint2: Or the _lack_ of "\n" 8)
> 

Ok, obviously something's wrong, but it's currently 03:44 here, so I'll 
take a look at it tomorrow (or quite possibly the day after since I have 
things to do).
Thank you for commenting, I'll dig into it at the first oppotunity I have.


-- 
Jesper



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Patch: add loglevel to printk's in net/ipv4/route.c
  2004-12-29  2:46           ` Jesper Juhl
@ 2004-12-29 23:39             ` Jesper Juhl
  2004-12-30  2:12               ` Herbert Poetzl
  0 siblings, 1 reply; 9+ messages in thread
From: Jesper Juhl @ 2004-12-29 23:39 UTC (permalink / raw)
  To: Jesper Juhl
  Cc: Arnaldo Carvalho de Melo, Jörn Engel, Networking Team,
	linux-net, David S. Miller, Alexey Kuznetsov, linux-kernel

On Wed, 29 Dec 2004, Jesper Juhl wrote:

> On Wed, 29 Dec 2004, Arnaldo Carvalho de Melo wrote:
> 
> > 
> > 
> > Jörn Engel wrote:
> > > On Wed, 29 December 2004 00:10:22 -0200, Arnaldo Carvalho de Melo wrote:
> > > 
> > > > > It doesn't make much difference, it's mostly for
> > > > > completeness/correctness.
> > > > 
> > > > No, it does a helluva difference, give it a try :-)
> > > 
> > > 
> > > hint: look for "\n"
> > 
> > hint2: Or the _lack_ of "\n" 8)
> > 
> 
> Ok, obviously something's wrong, but it's currently 03:44 here, so I'll 
> take a look at it tomorrow (or quite possibly the day after since I have 
> things to do).
> Thank you for commenting, I'll dig into it at the first oppotunity I have.
> 
> 
Ok, this is a bit embarresing. Looking at the patch now after getting some 
sleep it's quite obvious that it is wrong. I should have slept on it 
before sending it - sorry for the noise people.

-- 
Jesper Juhl




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Patch: add loglevel to printk's in net/ipv4/route.c
  2004-12-29 23:39             ` Jesper Juhl
@ 2004-12-30  2:12               ` Herbert Poetzl
  0 siblings, 0 replies; 9+ messages in thread
From: Herbert Poetzl @ 2004-12-30  2:12 UTC (permalink / raw)
  To: Jesper Juhl
  Cc: Arnaldo Carvalho de Melo, Jörn Engel, Networking Team,
	linux-net, David S. Miller, Alexey Kuznetsov, linux-kernel

On Thu, Dec 30, 2004 at 12:39:10AM +0100, Jesper Juhl wrote:
> On Wed, 29 Dec 2004, Jesper Juhl wrote:
> 
> > On Wed, 29 Dec 2004, Arnaldo Carvalho de Melo wrote:
> > 
> > > 
> > > 
> > > Jörn Engel wrote:
> > > > On Wed, 29 December 2004 00:10:22 -0200, Arnaldo Carvalho de Melo wrote:
> > > > 
> > > > > > It doesn't make much difference, it's mostly for
> > > > > > completeness/correctness.
> > > > > 
> > > > > No, it does a helluva difference, give it a try :-)
> > > > 
> > > > 
> > > > hint: look for "\n"
> > > 
> > > hint2: Or the _lack_ of "\n" 8)
> > > 
> > 
> > Ok, obviously something's wrong, but it's currently 03:44 here, so I'll 
> > take a look at it tomorrow (or quite possibly the day after since I have 
> > things to do).
> > Thank you for commenting, I'll dig into it at the first oppotunity I have.
> > 
> > 
> Ok, this is a bit embarresing. Looking at the patch now after getting some 
> sleep it's quite obvious that it is wrong. I should have slept on it 
> before sending it - sorry for the noise people.

nothing to be sorry about, and thanks for all
the work you are doing for the linux kernel ...

best,
Herbert

> -- 
> Jesper Juhl
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-12-30  2:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-29  2:01 Patch: add loglevel to printk's in net/ipv4/route.c Jesper Juhl
2004-12-29  2:02 ` Arnaldo Carvalho de Melo
2004-12-29  2:13   ` Jesper Juhl
2004-12-29  2:10     ` Arnaldo Carvalho de Melo
2004-12-29  2:12       ` Jörn Engel
2004-12-29  2:23         ` Arnaldo Carvalho de Melo
2004-12-29  2:46           ` Jesper Juhl
2004-12-29 23:39             ` Jesper Juhl
2004-12-30  2:12               ` Herbert Poetzl

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).