Skip to content
Snippets Groups Projects
Commit 229ef2eb authored by Richard Henderson's avatar Richard Henderson
Browse files

os-posix: Use qemu_log_enabled


Do not reference qemu_logfile directly;
use the predicate provided by qemu/log.h.

Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-Id: <20220417183019.755276-6-richard.henderson@linaro.org>
parent c5955f4f
No related branches found
No related tags found
No related merge requests found
......@@ -291,7 +291,7 @@ void os_setup_post(void)
dup2(fd, 0);
dup2(fd, 1);
/* In case -D is given do not redirect stderr to /dev/null */
if (!qemu_logfile) {
if (!qemu_log_enabled()) {
dup2(fd, 2);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment