mirror of
https://github.com/mii443/qemu.git
synced 2025-09-03 15:49:30 +00:00
util/log: Return bool from qemu_set_log_filename
Per the recommendations in qapi/error.h, return false on failure. Use the return value in the monitor, the only place we aren't already passing error_fatal or error_abort. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-4-richard.henderson@linaro.org>
This commit is contained in:
@ -419,8 +419,7 @@ static void hmp_logfile(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
Error *err = NULL;
|
||||
|
||||
qemu_set_log_filename(qdict_get_str(qdict, "filename"), &err);
|
||||
if (err) {
|
||||
if (!qemu_set_log_filename(qdict_get_str(qdict, "filename"), &err)) {
|
||||
error_report_err(err);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user