From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HGgOj-0002ON-MG for user-mode-linux-devel@lists.sourceforge.net; Mon, 12 Feb 2007 10:59:33 -0800 Received: from smtp009.mail.ukl.yahoo.com ([217.12.11.63]) by mail.sourceforge.net with smtp (Exim 4.44) id 1HGgOc-0003Sh-Uj for user-mode-linux-devel@lists.sourceforge.net; Mon, 12 Feb 2007 10:59:30 -0800 From: Blaisorblade Date: Mon, 12 Feb 2007 19:59:15 +0100 References: <200702100944.l1A9iSEp008813@shell0.pdx.osdl.net> <200702101331.20261.blaisorblade@yahoo.it> <20070210222157.GA3750@ccure.user-mode-linux.org> In-Reply-To: <20070210222157.GA3750@ccure.user-mode-linux.org> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200702121959.15722.blaisorblade@yahoo.it> Subject: Re: [uml-devel] [patch 094/241] uml: fix error output during early boot List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Jeff Dike Cc: user-mode-linux-devel@lists.sourceforge.net On Saturday 10 February 2007 23:21, Jeff Dike wrote: > On Sat, Feb 10, 2007 at 01:31:20PM +0100, Blaisorblade wrote: > > libc's printf has an enormous stack usage, so that my_printf is used for > > direct output instead of printf; if this is ok because it's bootup > > code, > > It is bootup code only. > > > then *fatal* should be marked as "bootup code only"; > > OK. > > > otherwise > > we may reuse vsprintf() and write() or fputs(); this should match > > what happens in my_printf, to avoid any unlikely problem with libc's > > buffering. > > Offhand, I would say that if we are on a kernel stack, printk is safe > to use, and should be used, so there's no need for things like > my_printf. Maybe there are some exceptions in early boot when the > kernel is running, but before the console is working, but I can't > think of any problems we've had like that. It's for no_config_chan (don't recall the right name), i.e. for when the console will never work because of a misconfiguration. Indeed it's static (and otherwise it ought to have a better name!). -- Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel