From: Dave Jones <davej@redhat.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [PATCH] include KERN_* constant in printk() calls in
Date: Tue, 10 Apr 2007 21:37:52 +0000 [thread overview]
Message-ID: <20070410213752.GE1283@redhat.com> (raw)
In-Reply-To: <20070409194151.GG4262@traven>
On Wed, Apr 11, 2007 at 01:07:06AM +0400, Alexey Dobriyan wrote:
> On Mon, Apr 09, 2007 at 04:02:09PM -0400, Dave Jones wrote:
> > On Mon, Apr 09, 2007 at 09:41:51PM +0200, Matthias Kaehlcke wrote:
> > > - printk(" %02x", (unsigned char)data[offset + i]);
> > > + printk(KERN_ERR " %02x", (unsigned char)data[offset + i]);
> > > }
> >
> > This one is wrong. It's printing a bunch of numbers in a loop, so with your change
> > it'll print for example...
> >
> > KERN_ERR 00 KERN_ERR 01 KERN_ERR 02 KERN_ERR etc etc..
> >
> > you only want the KERN_ERR at the beginning of each line.
>
> Am I the only one who wants config option to nop all these KERN_* stuff ?
probably ;)
Trivial to do though, but I doubt it'll save more than a page or so on
most configurations, and for those that really care about being tight
on space (embedded for eg), they've usually disabled huge swathes of kernel
code, so the number of printk's is reduced, reducing the space savings
from this idea also..
Dave
--
http://www.codemonkey.org.uk
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2007-04-10 21:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-09 19:41 [KJ] [PATCH] include KERN_* constant in printk() calls in mm/slab.c Matthias Kaehlcke
2007-04-09 20:02 ` [KJ] [PATCH] include KERN_* constant in printk() calls in Dave Jones
2007-04-09 20:08 ` Matthias Kaehlcke
2007-04-09 20:53 ` Matthias Kaehlcke
2007-04-09 21:23 ` Matthew Wilcox
2007-04-09 21:41 ` Matthew Wilcox
2007-04-10 6:48 ` Matthias Kaehlcke
2007-04-10 21:07 ` Alexey Dobriyan
2007-04-10 21:37 ` Dave Jones [this message]
2007-04-10 21:50 ` Robert P. J. Day
2007-04-10 21:58 ` Randy Dunlap
2007-04-11 6:50 ` Matthias Kaehlcke
2007-04-14 5:50 ` [PATCH] include KERN_* constant in printk() calls in arch/i386/mach-default/setup.c Matthias Kaehlcke
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=20070410213752.GE1283@redhat.com \
--to=davej@redhat.com \
--cc=kernel-janitors@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.