diff options
| author | Pranith Kumar <bobby.prani@gmail.com> | 2015-06-10 10:20:24 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-17 16:03:46 +0200 |
| commit | 67633bb4f7743be2cb2e70b61e482ab92bf1724e (patch) | |
| tree | 2466d63364f159f13e3a5884047047f66e89c13e /tests/libqos/malloc.c | |
| parent | 93f6d1c16036aaf34055d16f54ea770fb8d6d280 (diff) | |
| download | focaccia-qemu-67633bb4f7743be2cb2e70b61e482ab92bf1724e.tar.gz focaccia-qemu-67633bb4f7743be2cb2e70b61e482ab92bf1724e.zip | |
qemu-log: Open file for logging when specified
qemu-log defaults to stderr when there is no '-D' option mentioned on command line. When '-D' option is specified, we also need to specify '-d' option for it to use the specified logfile. When using monitor to enable logging this is troublesome since there will be no '-d' option because of which monitor dumps the logs to stderr. Fix this by opening the log file when '-D' is specified on the command line. Also fix an ancient comment which does not hold true since changing location and log level has now been streamlined. Signed-off-by: Pranith Kumar <bobby.prani@gmail.com> CC: Paolo Bonzini <pbonzini@redhat.com> CC: Luiz Capitulino <lcapitulino@redhat.com> CC: Markus Armbruster <armbru@redhat.com> CC: Peter Maydell <peter.maydell@linaro.org> Message-Id: <1433946024-18439-1-git-send-email-bobby.prani@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/libqos/malloc.c')
0 files changed, 0 insertions, 0 deletions