qemu-patch-raspberry4/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
..
container.c container: don't leak container reference 2017-05-04 15:34:41 +04:00
cpu.c qom/cpu: Simplify how CPUClass::dump_statistics() prints 2019-04-18 22:18:59 +02:00
Makefile.objs qom: allow QOM to be linked into tools binaries 2015-09-15 14:35:39 +01:00
object.c qom: Move compat_props machinery from qdev to QOM 2019-03-11 22:53:44 +01:00
object_interfaces.c qom: don't require user creatable objects to be registered 2019-02-26 15:25:58 +00:00
qom-qobject.c qapi: Drop unused non-strict qobject input visitor 2017-03-05 09:14:19 +01:00
trace-events trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00