Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KTLEY-0000n8-Bn for mharc-grub-devel@gnu.org; Wed, 13 Aug 2008 14:38:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTLEW-0000mf-U8 for grub-devel@gnu.org; Wed, 13 Aug 2008 14:38:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTLEV-0000mG-Ad for grub-devel@gnu.org; Wed, 13 Aug 2008 14:38:08 -0400 Received: from [199.232.76.173] (port=55559 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTLEV-0000m8-3G for grub-devel@gnu.org; Wed, 13 Aug 2008 14:38:07 -0400 Received: from smtp-vbr9.xs4all.nl ([194.109.24.29]:4645) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTLEU-0001Ls-3r for grub-devel@gnu.org; Wed, 13 Aug 2008 14:38:06 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id m7DIc3up072543 for ; Wed, 13 Aug 2008 20:38:03 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <1218555015.1604.6.camel@fz.local> <87ljz1b6gc.fsf@xs4all.nl> <1218648926.9951.12.camel@fz.local> Mail-Copies-To: mgerards@xs4all.nl Date: Wed, 13 Aug 2008 20:41:42 +0200 In-Reply-To: <1218648926.9951.12.camel@fz.local> (Felix Zielcke's message of "Wed, 13 Aug 2008 19:35:26 +0200") Message-ID: <87ljz021w9.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [RFC] change grub_print_error to use stderr for the utils X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 18:38:09 -0000 Felix Zielcke writes: > Hello, > > Am Mittwoch, den 13.08.2008, 11:38 +0200 schrieb Marco Gerards: >> > 2008-08-12 Felix Zielcke >> > >> > * kern/err.c [GRUB_UTIL]: Include . >> > (grub_print_error) [GRUB_UTIL]: Use fprintf (stderr, ...) instead of >> > grub_printf. >> >> If there is another way to do this, I would prefer this. > > Now with remaking that grub_print_error () patch I began to doubt if > that `GRUB fears raid 6 so much that it goes to rescue mode if it just > sees one which it doestn't need to access at all' should be changed for > lenny. > Robert confirmed my doubts on IRC i.e. he said, it's better to discuss > the whole thing first. > > This is my first mail about this: > Message-Id: <1218454936.4035.19.camel@fz.local> > > just using grub_dprintf isn't that great, I'd like to have at least > `grub-probe -vv' show the unknown RAID level message. > > The other patch, which changes grub_print_error () to use stderr and let > the raid.mod itself print the error instead of giving it to the upper > layer isn't that great either. > > Real GRUB shows for every RAID 6 disk once `unknown RAID level 6' e.g. > in my VMware testcase with 4 disks 4 times. > > grub-install /dev/sda with raid 6 not even assembled i.e. > empty /proc/mdstat shows it 6 times, I think once for each time > grub-probe gets called. > > By the way my last patch isn't even compiling because I forgot to make > some other stuff from kern/err.c avaible to it i.e. > grub_error_stack_assert is declared as static but used in > grub_print_error () > and there's another problem grub-mkimage includes util/misc.c but not > kern/err.c so the other functions and variables needed by it aren't > avaible. > > So please comment this. So what do you propose? :-) You lost me midway since you change subjects a bit often ;( -- Marco