Re: [Spice-devel] [vdagent-win PATCH 1/3] Make VDLog::printf static

2017-07-26 Thread Christophe Fergeau
On Wed, Jul 26, 2017 at 11:03:40AM +0100, Frediano Ziglio wrote: > VDLog::printf is called only using a VDLog pointer. > Being this class a singleton there could only one instance of > the class so the pointer must be the single instance. > This simplify LOG macros not having to choose between prin

[Spice-devel] [vdagent-win PATCH 1/3] Make VDLog::printf static

2017-07-26 Thread Frediano Ziglio
VDLog::printf is called only using a VDLog pointer. Being this class a singleton there could only one instance of the class so the pointer must be the single instance. This simplify LOG macros not having to choose between printf and VDLog::printf. The manual GNU __attribute__ is used as the format