summary refs log tree commit diff stats
path: root/trace/simple.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2019-04-17 21:17:50 +0200
committerMarkus Armbruster <armbru@redhat.com>2019-04-18 22:18:59 +0200
commitba4912cb0d6035192d58fbb4b901e8f39cfd0948 (patch)
treecd717d7606c2d15ba743b7267ad89739be5f8c6e /trace/simple.h
parent15ce35fcf18f88e345bd65c169f26d3a3d250ab9 (diff)
downloadfocaccia-qemu-ba4912cb0d6035192d58fbb4b901e8f39cfd0948.tar.gz
focaccia-qemu-ba4912cb0d6035192d58fbb4b901e8f39cfd0948.zip
trace: Simplify how st_print_trace_file_status() prints
st_print_trace_file_status() takes an fprintf()-like callback and a
FILE * to pass to it.

Its only caller hmp_trace_file() passes monitor_fprintf() and the
current monitor cast to FILE *.  monitor_fprintf() casts it right
back, and is otherwise identical to monitor_printf().  The
type-punning is ugly.

Drop the callback, and call qemu_printf() instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190417191805.28198-3-armbru@redhat.com>
Diffstat (limited to '')
-rw-r--r--trace/simple.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace/simple.h b/trace/simple.h
index 9931808c05..5771a0634f 100644
--- a/trace/simple.h
+++ b/trace/simple.h
@@ -11,7 +11,7 @@
 #ifndef TRACE_SIMPLE_H
 #define TRACE_SIMPLE_H
 
-void st_print_trace_file_status(FILE *stream, fprintf_function stream_printf);
+void st_print_trace_file_status(void);
 void st_set_trace_file_enabled(bool enable);
 void st_set_trace_file(const char *file);
 bool st_init(void);