[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC] Don't send local debug output to stdout

From: Stefan Weil
Subject: Re: [Qemu-devel] [RFC] Don't send local debug output to stdout
Date: Wed, 24 Feb 2010 19:29:06 +0100
User-agent: Mozilla-Thunderbird (X11/20090707)

Paul Brook schrieb:
>> I suggest these steps:
>> 1. Debug output to stdout is no longer accepted for new / modified code.
>> 2. New or modified debug messages should go to stderr.
> I don't see this as a real improvement. Arguably these aren't errors, so
> stdout is where they should be going.
> If we're going to do anything sensible with debug output then we
> should figure
> out how to do it properly and consistently. Also remember that this isn't
> supposed to be user friendly, it's for internal developer use only.
> Paul

stdout is already used by curses or serial console output
when QEMU is called with appropriate command line switches.

If debugging output also goes to stdout, program output and
debugging output are mixed which can make both completely

Just consider debug output from the serial driver (or any other
device which works parallel to the normal program output).
I was already confronted with this problem.

My proposal is easy to implement and sufficient for internal
developer use. It is not new: parts of QEMU already use
stderr for debugging output. Of course better solutions exist,
but they also need more efforts.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]