diff options
author | Paolo Bonzini | 2016-01-07 14:55:30 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2016-02-03 11:37:10 +0100 |
commit | ed7f5f1d8db06fc31352a5ef4f54985e630c575a (patch) | |
tree | 648de861c856da524750b89e85f4aa2d5b6e700f /util | |
parent | log: move qemu-log.c into util/ directory (diff) | |
download | qemu-ed7f5f1d8db06fc31352a5ef4f54985e630c575a.tar.gz qemu-ed7f5f1d8db06fc31352a5ef4f54985e630c575a.tar.xz qemu-ed7f5f1d8db06fc31352a5ef4f54985e630c575a.zip |
trace: convert stderr backend to log
[Also update .travis.yml --enable-trace-backends=stderr
--Stefan]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Message-id: 1452174932-28657-10-git-send-email-den@openvz.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/log.c b/util/log.c index 901b93087d..37185a5e77 100644 --- a/util/log.c +++ b/util/log.c @@ -51,6 +51,9 @@ void qemu_log_mask(int mask, const char *fmt, ...) void do_qemu_set_log(int log_flags, bool use_own_buffers) { qemu_loglevel = log_flags; +#ifdef CONFIG_TRACE_LOG + qemu_loglevel |= LOG_TRACE; +#endif if (qemu_loglevel && !qemu_logfile) { if (logfilename) { qemu_logfile = fopen(logfilename, log_append ? "a" : "w"); |