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 unreadable. 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. Stefan