diff options
| author | Paolo Bonzini | 2021-02-09 15:57:59 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2021-03-06 11:42:57 +0100 |
| commit | 7520c4f0847093aefa87f23113f28d5d1d574aed (patch) | |
| tree | f939d92a2e016cf23bddafec734e17342b6decdf /include | |
| parent | trace: fix "-trace file=..." (diff) | |
| download | qemu-7520c4f0847093aefa87f23113f28d5d1d574aed.tar.gz qemu-7520c4f0847093aefa87f23113f28d5d1d574aed.tar.xz qemu-7520c4f0847093aefa87f23113f28d5d1d574aed.zip | |
trace: skip qemu_set_log_filename if no "-D" option was passed
When the "simple" backend is not active but the "log" backend is,
both "-trace file=" and "-D" will result in a call to
qemu_set_log_filename. Unfortunately, QEMU was also calling
qemu_set_log_filename if "-D" was not passed, so the "-trace
file=" option had no effect and the tracepoints went back to
stderr.
Fortunately we can just skip qemu_set_log_filename in that case,
because the log backend will initialize itself just fine as soon
as qemu_set_log is called, also in qemu_process_early_options.
Cc: stefanha@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210209145759.141231-3-pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
