diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-17 11:30:07 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2022-04-20 10:51:11 -0700 |
| commit | 144539d3605ed7da9b8c1d69f49a282f8c4348b8 (patch) | |
| tree | 32ac5c67807f260eea0deebd8c56dd08943729cc /include/qemu/log.h | |
| parent | 6391c772d7c5928d1b2abd65486330b34c97a42b (diff) | |
| download | focaccia-qemu-144539d3605ed7da9b8c1d69f49a282f8c4348b8.tar.gz focaccia-qemu-144539d3605ed7da9b8c1d69f49a282f8c4348b8.zip | |
util/log: Introduce qemu_set_log_filename_flags
Provide a function to set both filename and flags at the same time. This is the common case at startup. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-28-richard.henderson@linaro.org>
Diffstat (limited to 'include/qemu/log.h')
| -rw-r--r-- | include/qemu/log.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/log.h b/include/qemu/log.h index 42d545f77a..b6c73376b5 100644 --- a/include/qemu/log.h +++ b/include/qemu/log.h @@ -82,6 +82,7 @@ extern const QEMULogItem qemu_log_items[]; bool qemu_set_log(int log_flags, Error **errp); bool qemu_set_log_filename(const char *filename, Error **errp); +bool qemu_set_log_filename_flags(const char *name, int flags, 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); |