Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D46Y9-00020a-SE for mharc-grub-devel@gnu.org; Wed, 23 Feb 2005 19:08:14 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D46Y6-0001yQ-Nj for grub-devel@gnu.org; Wed, 23 Feb 2005 19:08:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D46Y4-0001xA-Jf for grub-devel@gnu.org; Wed, 23 Feb 2005 19:08:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D46LL-0000Gd-Du for grub-devel@gnu.org; Wed, 23 Feb 2005 18:54:59 -0500 Received: from [209.86.89.67] (helo=smtpauth07.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D45fi-0006I6-68 for grub-devel@gnu.org; Wed, 23 Feb 2005 18:11:58 -0500 Received: from [63.246.184.80] (helo=[192.168.0.100]) by smtpauth07.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1D45fh-0004gL-7V for grub-devel@gnu.org; Wed, 23 Feb 2005 18:11:57 -0500 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <421A4CEA.5030603@yahoo.fr> References: <421A4CEA.5030603@yahoo.fr> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4ecefea8af9852b4ed0a0b046d73e9ee@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Wed, 23 Feb 2005 17:11:56 -0600 To: The development of GRUB 2 X-Mailer: Apple Mail (2.619.2) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec79c3bb115a5620d906cac1ef71e2b6b74a350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Subject: Re: [PATCH] dprintf implementation 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: Thu, 24 Feb 2005 00:08:11 -0000 On Feb 21, 2005, at 3:04 PM, Vincent Pelletier wrote: > Here is the dprintf function I worked on 2 weeks ago, which I fixed > this > evening. Your mailer did some bad stuff to this patch again... > Index: kern/misc.c > =================================================================== > RCS file: /cvsroot/grub/grub2/kern/misc.c,v > retrieving revision 1.18 > diff -u -p -r1.18 misc.c > - --- kern/misc.c 19 Feb 2005 20:56:07 -0000 1.18 > +++ kern/misc.c 21 Feb 2005 20:38:38 -0000 > @@ -128,6 +128,18 @@ grub_printf (const char *fmt, ...) > ~ return ret; > ~ } > > +void > +grub_real_dprintf(const char *file, const int line, const char *title, > + const char *fmt, ...) > +{ > + va_list args; > + > + grub_printf ("%s,%d (%s): ", file, line, title); > + va_start (args, fmt); > + grub_vprintf (fmt, args); > + va_end (args); > +} > + > ~ int > ~ grub_vprintf (const char *fmt, va_list args) > ~ { Weren't we going to have various flags to selectively enable debug messages from particular components at runtime? That's the most important thing to me: to be able to debug a user's mysterious problem by telling them "use debug=filesystem and send me the output". -Hollis