summary refs log tree commit diff stats
path: root/include/exec/cpu-common.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2019-04-17 21:17:56 +0200
committerMarkus Armbruster <armbru@redhat.com>2019-04-18 22:18:59 +0200
commitb6b71cb5c674a97a4cd935349ce8a2764f720af4 (patch)
treee19df340f498ea7caa5bf81c756c02109042258b /include/exec/cpu-common.h
parente1ce7d747bc071f86a77683b433b852001163c2c (diff)
downloadfocaccia-qemu-b6b71cb5c674a97a4cd935349ce8a2764f720af4.tar.gz
focaccia-qemu-b6b71cb5c674a97a4cd935349ce8a2764f720af4.zip
memory: Clean up how mtree_info() prints
mtree_info() takes an fprintf()-like callback and a FILE * to pass to
it, and so do its helper functions.  Passing around callback and
argument is rather tiresome.

Its only caller hmp_info_mtree() passes monitor_printf() cast to
fprintf_function and the current monitor cast to FILE *.

The type-punning is technically undefined behaviour, but works in
practice.  Clean up: 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-9-armbru@redhat.com>
Diffstat (limited to 'include/exec/cpu-common.h')
0 files changed, 0 insertions, 0 deletions