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>
This commit is contained in:
Richard Henderson 2022-04-17 11:29:44 -07:00
parent e2c7c6a454
commit c5955f4ff4
12 changed files with 22 additions and 18 deletions

View file

@ -414,7 +414,7 @@ int main(int argc, char **argv)
qemu_print_log_usage(stdout);
exit(1);
}
qemu_set_log(mask);
qemu_set_log(mask, &error_fatal);
}
if (optind >= argc) {