From: "Kristian Høgsberg" <krh@bitplanet.net>
To: devzero@web.de
Cc: krh@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] Only print "Decompressing Linux" etc when 'noisy' is passed.
Date: Sat, 24 May 2008 23:41:34 -0400 [thread overview]
Message-ID: <20080525034134.GA2392@bitplanet.net> (raw)
In-Reply-To: <290568367@web.de>
On Sat, May 24, 2008 at 09:28:21PM +0200, devzero@web.de wrote:
> what about using "quiet" here instead ?
>
> quiet is already the parameter to suppress boot messages, so introducing another one doesn`t make sense, imho.
I agree, and I wasn't looking to introduce a new parameter, I meant to
reuse 'debug'. That is already used for increasing the log level
(see init/main.c). Also, as it is, the decompressor already prints
error messages if something goes wrong, so there's not much point in
printing the debug spew. I think it makes sense to default to not
print it.
> the early boot commandline parser was extended some time ago to support boolean options, see:
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=32d0b9898029b7b3c7f161d31f57c4831d9049eb
>
> this may shrink your patch , see example in arch/x86/boot/edd.c
Unfortunately, that doesn't help me. This code is run before the kernel
is decompressed and the only functions available are the ones in misc.c.
And I know the strnstr approach isn't quite smart enough the handle quoted
parameters and similar, but I think it strikes a good balance.
I'll send an updated patch that looks for 'debug' instead of 'noisy'.
thanks,
Kristian
next prev parent reply other threads:[~2008-05-25 3:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-24 19:28 [PATCH 2/2] Only print "Decompressing Linux" etc when 'noisy' is passed devzero
2008-05-25 3:41 ` Kristian Høgsberg [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-05-23 21:59 [PATCH 1/2] Use structs instead of hardcoded offsets in x86 boot decompressor Kristian Høgsberg
2008-05-23 21:59 ` [PATCH 2/2] Only print "Decompressing Linux" etc when 'noisy' is passed Kristian Høgsberg
2008-05-23 22:42 ` Johannes Weiner
2008-05-24 9:25 ` Mikael Pettersson
2008-05-24 18:07 ` Diego Calleja
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=20080525034134.GA2392@bitplanet.net \
--to=krh@bitplanet.net \
--cc=devzero@web.de \
--cc=krh@redhat.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox