qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 08/17] memory: Clean up how mtree_info() prints


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 08/17] memory: Clean up how mtree_info() prints
Date: Fri, 12 Apr 2019 20:25:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

"Dr. David Alan Gilbert" <address@hidden> writes:

> * Markus Armbruster (address@hidden) wrote:
>> dump_drift_info() takes an fprintf()-like callback and a FILE * to
>
> ^^^^^^^^^^^^^^^^^^^ looks like the wrong function for this patch?

Pasto, will fix.

>> 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 <address@hidden>
>
> Other than the function name above,
>
>
> Reviewed-by: Dr. David Alan Gilbert <address@hidden>

Thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]