]> git.proxmox.com Git - mirror_qemu.git/commit
qsp: Simplify how qsp_report() prints
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Apr 2019 19:17:54 +0000 (21:17 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 18 Apr 2019 20:18:59 +0000 (22:18 +0200)
commitac7ff4cf5f20eee8cec228209f6b3ca557c60639
tree88938d9d560afb4c6bf5c65d7ee925803e6198d1
parent76c8661595fa9414fabf8a164b9adfc93c8a65e2
qsp: Simplify how qsp_report() prints

qsp_report() takes an fprintf()-like callback and a FILE * to pass to
it.

Its only caller hmp_sync_profile() 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-7-armbru@redhat.com>
include/block/qapi.h
include/qemu/qsp.h
monitor.c
util/qsp.c