mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 05:58:32 +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:
@@ -148,7 +148,7 @@ typedef struct QEMULogItem {
|
||||
extern const QEMULogItem qemu_log_items[];
|
||||
|
||||
void qemu_set_log(int log_flags);
|
||||
void qemu_set_log_filename(const char *filename, Error **errp);
|
||||
bool qemu_set_log_filename(const char *filename, Error **errp);
|
||||
void qemu_set_dfilter_ranges(const char *ranges, Error **errp);
|
||||
bool qemu_log_in_addr_range(uint64_t addr);
|
||||
int qemu_str_to_log_mask(const char *str);
|
||||
|
||||
Reference in New Issue
Block a user