aboutsummaryrefslogtreecommitdiff
path: root/softmmu
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-04-17 11:29:44 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-04-20 10:51:11 -0700
commitc5955f4ff4689b7a04cf0a1109fa97ce885876b4 (patch)
tree27a7af47ce5ee5469d49c2736f728a6ef646e7cd /softmmu
parente2c7c6a454c2c4221461aa04e4061dbb91b4986c (diff)
downloadqemu-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 'softmmu')
-rw-r--r--softmmu/vl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 46aba6a..fe9de2f 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -2570,9 +2570,9 @@ static void qemu_process_early_options(void)
qemu_print_log_usage(stdout);
exit(1);
}
- qemu_set_log(mask);
+ qemu_set_log(mask, &error_fatal);
} else {
- qemu_set_log(0);
+ qemu_set_log(0, &error_fatal);
}
qemu_add_default_firmwarepath();