diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-17 11:29:44 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-04-20 10:51:11 -0700 |
commit | c5955f4ff4689b7a04cf0a1109fa97ce885876b4 (patch) | |
tree | 27a7af47ce5ee5469d49c2736f728a6ef646e7cd /tests/unit/test-logging.c | |
parent | e2c7c6a454c2c4221461aa04e4061dbb91b4986c (diff) | |
download | qemu-c5955f4ff4689b7a04cf0a1109fa97ce885876b4.zip qemu-c5955f4ff4689b7a04cf0a1109fa97ce885876b4.tar.gz qemu-c5955f4ff4689b7a04cf0a1109fa97ce885876b4.tar.bz2 |
util/log: Pass Error pointer to qemu_set_log
Do not force exit within qemu_set_log; return bool and pass
an Error value back up the stack as per usual.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220417183019.755276-5-richard.henderson@linaro.org>
Diffstat (limited to 'tests/unit/test-logging.c')
-rw-r--r-- | tests/unit/test-logging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test-logging.c b/tests/unit/test-logging.c index 05703a4..d071400 100644 --- a/tests/unit/test-logging.c +++ b/tests/unit/test-logging.c @@ -122,7 +122,7 @@ static void test_logfile_write(gconstpointer data) * In cases where a logging backend other than log is used, * this is needed. */ - qemu_set_log(CPU_LOG_TB_OUT_ASM); + qemu_set_log(CPU_LOG_TB_OUT_ASM, &error_abort); file_path = g_build_filename(dir, "qemu_test_log_write0.log", NULL); file_path1 = g_build_filename(dir, "qemu_test_log_write1.log", NULL); |