[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/39] os-posix: Use qemu_log_enabled
From: |
Richard Henderson |
Subject: |
[PULL 05/39] os-posix: Use qemu_log_enabled |
Date: |
Wed, 20 Apr 2022 11:05:44 -0700 |
Do not reference qemu_logfile directly;
use the predicate provided by qemu/log.h.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220417183019.755276-6-richard.henderson@linaro.org>
---
os-posix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/os-posix.c b/os-posix.c
index ee765f047d..faf6e6978b 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -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);
}
--
2.34.1
- [PULL 00/39] Logging cleanup and per-thread logfiles, Richard Henderson, 2022/04/20
- [PULL 01/39] util/log: Drop manual log buffering, Richard Henderson, 2022/04/20
- [PULL 05/39] os-posix: Use qemu_log_enabled,
Richard Henderson <=
- [PULL 04/39] util/log: Pass Error pointer to qemu_set_log, Richard Henderson, 2022/04/20
- [PULL 02/39] target/hexagon: Remove qemu_set_log in hexagon_translate_init, Richard Henderson, 2022/04/20
- [PULL 03/39] util/log: Return bool from qemu_set_log_filename, Richard Henderson, 2022/04/20
- [PULL 07/39] util/log: Rename qemu_log_lock to qemu_log_trylock, Richard Henderson, 2022/04/20
- [PULL 08/39] hw/xen: Split out xen_pv_output_msg, Richard Henderson, 2022/04/20
- [PULL 09/39] *: Use fprintf between qemu_log_trylock/unlock, Richard Henderson, 2022/04/20
- [PULL 13/39] exec/log: Remove log_disas and log_target_disas, Richard Henderson, 2022/04/20
- [PULL 12/39] exec/translator: Pass the locked filepointer to disas_log hook, Richard Henderson, 2022/04/20
- [PULL 06/39] util/log: Move qemu_log_lock, qemu_log_unlock out of line, Richard Henderson, 2022/04/20
- [PULL 10/39] util/log: Remove qemu_log_vprintf, Richard Henderson, 2022/04/20