win32-vd_agent/common
Frediano Ziglio 6a60c1dccc Make VDLog::printf static
VDLog::printf is called only using a VDLog pointer.
Since this class is a singleton, there can only be one instance of it,
so LOG() does not really need to deal with it, VDLog::printf can
do that instead.
This simplifies LOG macros by not having to choose between printf and
VDLog::printf.

The manual GNU __attribute__ is used as the format to use is
not the standard __printf__ format used in SPICE_GNUC_PRINTF
but you need to use the gnu_printf format. For instance the "%llu"
syntax is accepted by gnu_print format but not by __printf__ one.
MinGW C++ by default uses gnu_printf format for all formatting
functions.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-07-26 15:35:01 +01:00
..
stdint.h mingw: don't redefine SIZE_MAX 2012-02-23 19:03:25 +01:00
vdcommon.cpp Use enumeration for supported_system_version return type 2016-08-10 11:13:39 +01:00
vdcommon.h Use simpler classes for mutex handling 2016-09-01 15:50:14 +01:00
vdlog.cpp Make VDLog::printf static 2017-07-26 15:35:01 +01:00
vdlog.h Make VDLog::printf static 2017-07-26 15:35:01 +01:00
version.rc build: Automatically update version/copyright in version.rc 2016-11-17 13:17:20 +00:00