summaryrefslogtreecommitdiff
path: root/qemu-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-log.c')
-rw-r--r--qemu-log.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/qemu-log.c b/qemu-log.c
index 9a7e5675a1..786d335893 100644
--- a/qemu-log.c
+++ b/qemu-log.c
@@ -170,3 +170,12 @@ int cpu_str_to_log_mask(const char *str)
}
return mask;
}
+
+void qemu_print_log_usage(FILE *f)
+{
+ const CPULogItem *item;
+ fprintf(f, "Log items (comma separated):\n");
+ for (item = cpu_log_items; item->mask != 0; item++) {
+ fprintf(f, "%-10s %s\n", item->name, item->help);
+ }
+}