linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] [patch 094/241] uml: fix error output during early boot
Date: Sat, 10 Feb 2007 17:21:57 -0500	[thread overview]
Message-ID: <20070210222157.GA3750@ccure.user-mode-linux.org> (raw)
In-Reply-To: <200702101331.20261.blaisorblade@yahoo.it>

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.

				Jeff

-- 
Work email - jdike at linux dot intel dot 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

  reply	other threads:[~2007-02-10 22:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200702100944.l1A9iSEp008813@shell0.pdx.osdl.net>
2007-02-10 12:31 ` [uml-devel] [patch 094/241] uml: fix error output during early boot Blaisorblade
2007-02-10 22:21   ` Jeff Dike [this message]
2007-02-12 18:59     ` Blaisorblade

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=20070210222157.GA3750@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=blaisorblade@yahoo.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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