mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/win32-vd_agent
synced 2026-01-08 20:57:41 +00:00
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> |
||
|---|---|---|
| .. | ||
| stdint.h | ||
| vdcommon.cpp | ||
| vdcommon.h | ||
| vdlog.cpp | ||
| vdlog.h | ||
| version.rc | ||