• Peter Maydell's avatar
    qemu-log: default to stderr for logging output · 989b697d
    Peter Maydell authored
    Switch the default for qemu_log logging output from "/tmp/qemu.log"
    to stderr. This is an incompatible change in some sense, but logging
    is mostly used for debugging purposes so it shouldn't affect production
    use. The previous behaviour can be obtained by adding "-D /tmp/qemu.log"
    to the command line.
    
    This change requires us to:
     * update all the documentation/help text (we take the opportunity
       to smooth out minor inconsistencies between the phrasing in
       linux-user/bsd-user/system help messages)
     * make linux-user and bsd-user defer to qemu-log for the default
       logging destination rather than overriding it themselves
     * ensure that all logfile closing is done via qemu_log_close()
       and that that function doesn't close stderr
    as well as the obvious change to the behaviour of do_qemu_set_log()
    when no logfile name has been specified.
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Message-id: 1361901160-28729-1-git-send-email-peter.maydell@linaro.org
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    989b697d
Name
Last commit
Last update
..
freebsd Loading commit data...
i386 Loading commit data...
netbsd Loading commit data...
openbsd Loading commit data...
sparc Loading commit data...
sparc64 Loading commit data...
x86_64 Loading commit data...
Makefile.objs Loading commit data...
bsd-mman.h Loading commit data...
bsdload.c Loading commit data...
elfload.c Loading commit data...
errno_defs.h Loading commit data...
main.c Loading commit data...
mmap.c Loading commit data...
qemu.h Loading commit data...
signal.c Loading commit data...
strace.c Loading commit data...
syscall.c Loading commit data...
syscall_defs.h Loading commit data...
uaccess.c Loading commit data...