Re: [Qemu-devel] [RFC PATCH v1 1/4] qemu-log: Allow checking of the current mask

2013-03-03 Thread Peter Maydell
On 3 March 2013 06:13, Peter Crosthwaite wrote: > Useful for heavy users of qemu_log_mask that want to avoid executing expensive > logic that sets up a qemu_log_mask when that mask is disabled. E.G. > > if (qemu_log_get_mask() && LOG_GUEST_ERROR) { > /* do my expensive logging data query *

[Qemu-devel] [RFC PATCH v1 1/4] qemu-log: Allow checking of the current mask

2013-03-02 Thread Peter Crosthwaite
Useful for heavy users of qemu_log_mask that want to avoid executing expensive logic that sets up a qemu_log_mask when that mask is disabled. E.G. if (qemu_log_get_mask() && LOG_GUEST_ERROR) { /* do my expensive logging data query */ } qemu_log_mask(LOG_GUEST_ERROR, ...) Signed-off-by: Pe