On 14/03/2016 12:21, Denis V. Lunev wrote:
The patch is intended to avoid to perform any operation including
calculation of log function arguments when the log is not enabled due to
various reasons.
Functions qemu_log and qemu_log_mask are replaced with variadic macros.
Format checking performed by compiler will not suffer by this patch. It
will be done inside in fprintf arguments checking.
Have you encountered a place that was calling them so hard that it
caused performance problem? If so, the logging should probably be
replaced by a tracepoint.
Paolo