[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL for-7.1 04/36] os-posix: Use qemu_log_enabled
|
From: |
Richard Henderson |
|
Subject: |
[PULL for-7.1 04/36] os-posix: Use qemu_log_enabled |
|
Date: |
Sun, 20 Mar 2022 10:11:03 -0700 |
Do not reference qemu_logfile directly;
use the predicate provided by qemu/log.h.
Signed-off-by: Richard Henderson <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 24692c8593..20d31fc518 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -292,7 +292,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.25.1
[PULL for-7.1 07/36] hw/xen: Split out xen_pv_output_msg, Richard Henderson, 2022/03/20
[PULL for-7.1 16/36] util/log: Remove qemu_log_flush, Richard Henderson, 2022/03/20