]> Git Repo - qemu.git/commit
trace: skip qemu_set_log_filename if no "-D" option was passed
authorPaolo Bonzini <[email protected]>
Tue, 9 Feb 2021 14:57:59 +0000 (15:57 +0100)
committerPaolo Bonzini <[email protected]>
Sat, 6 Mar 2021 10:42:57 +0000 (11:42 +0100)
commit7520c4f0847093aefa87f23113f28d5d1d574aed
treef939d92a2e016cf23bddafec734e17342b6decdf
parent9f45a641097b0a54c673fe3399c7a8ccb6f06af1
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: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
Message-Id: <20210209145759[email protected]>
softmmu/vl.c
This page took 0.02561 seconds and 4 git commands to generate.