From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
To: Jesper Juhl <juhl-lkml@dif.dk>
Cc: Networking Team <netdev@oss.sgi.com>,
linux-net <linux-net@vger.kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Patch: add loglevel to printk's in net/ipv4/route.c
Date: Wed, 29 Dec 2004 00:02:53 -0200 [thread overview]
Message-ID: <41D2104D.3010406@conectiva.com.br> (raw)
In-Reply-To: <Pine.LNX.4.61.0412290256000.3528@dragon.hygekrogen.localhost>
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
next prev parent reply other threads:[~2004-12-29 2:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41D2104D.3010406@conectiva.com.br \
--to=acme@conectiva.com.br \
--cc=davem@davemloft.net \
--cc=juhl-lkml@dif.dk \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).