diff options
| author | Peter Maydell | 2013-02-11 17:41:21 +0100 |
|---|---|---|
| committer | Blue Swirl | 2013-02-16 11:44:11 +0100 |
| commit | 59a6fa6e67d2335d867c66c59d992847e5b62879 (patch) | |
| tree | 7cfe5ed1882e24a51b8eff859594c23a06423d3a /include | |
| parent | qemu-log: Unify {cpu_set,set_cpu}_log_filename as qemu_set_log_filename (diff) | |
| download | qemu-59a6fa6e67d2335d867c66c59d992847e5b62879.tar.gz qemu-59a6fa6e67d2335d867c66c59d992847e5b62879.tar.xz qemu-59a6fa6e67d2335d867c66c59d992847e5b62879.zip | |
qemu-log: Abstract out "print usage message about valid log categories"
Abstract out the "print a human readable list of all the
valid log categories" functionality which is currently duplicated
in three separate places. (We leave the monitor.c help_cmd()
implementation as-is since it wants to send the message to
the monitor and add its own information.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/qemu/log.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qemu/log.h b/include/qemu/log.h index 4760e04c5e..59511a3748 100644 --- a/include/qemu/log.h +++ b/include/qemu/log.h @@ -157,4 +157,9 @@ static inline void cpu_set_log(int log_flags) void qemu_set_log_filename(const char *filename); int cpu_str_to_log_mask(const char *str); +/* Print a usage message listing all the valid logging categories + * to the specified FILE*. + */ +void qemu_print_log_usage(FILE *f); + #endif |
