]> Git Repo - qemu.git/commit
memory: Clean up how mtree_info() prints
authorMarkus Armbruster <[email protected]>
Wed, 17 Apr 2019 19:17:56 +0000 (21:17 +0200)
committerMarkus Armbruster <[email protected]>
Thu, 18 Apr 2019 20:18:59 +0000 (22:18 +0200)
commitb6b71cb5c674a97a4cd935349ce8a2764f720af4
treee19df340f498ea7caa5bf81c756c02109042258b
parente1ce7d747bc071f86a77683b433b852001163c2c
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 <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Message-Id: <20190417191805[email protected]>
exec.c
include/exec/memory-internal.h
include/exec/memory.h
memory.c
monitor.c
This page took 0.027271 seconds and 4 git commands to generate.