qemu/include/qom
Markus Armbruster 11cb6c152a qom/cpu: Simplify how CPUClass::dump_statistics() prints
CPUClass method dump_statistics() takes an fprintf()-like callback and
a FILE * to pass to it.

Its only caller hmp_info_cpustats() (via cpu_dump_statistics()) 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-13-armbru@redhat.com>
2019-04-18 22:18:59 +02:00
..
cpu.h qom/cpu: Simplify how CPUClass::dump_statistics() prints 2019-04-18 22:18:59 +02:00
object_interfaces.h qom: make user_creatable_complete() specific to UserCreatable 2018-12-11 15:45:22 -02:00
object.h qom: Move compat_props machinery from qdev to QOM 2019-03-11 22:53:44 +01:00
qom-qobject.h qom: move include files to include/qom/ 2012-12-19 08:31:32 +01:00