Re: [Spice-devel] [spice-server v2] dcc: Rework COMPRESS_DEBUG macro

2018-07-20 Thread Christophe Fergeau
On Fri, Jul 20, 2018 at 06:03:03AM -0400, Frediano Ziglio wrote: > > > > Rather than using > > #ifdef COMPRESS_DEBUG > >spice_info(...); > > #endif > > > > we can #define COMPRESS_DEBUG to spice_debug() or to do nothing for a > > slight readability improvement. This opportunity is used to r

Re: [Spice-devel] [spice-server v2] dcc: Rework COMPRESS_DEBUG macro

2018-07-20 Thread Frediano Ziglio
> > Rather than using > #ifdef COMPRESS_DEBUG >spice_info(...); > #endif > > we can #define COMPRESS_DEBUG to spice_debug() or to do nothing for a > slight readability improvement. This opportunity is used to replace > these spice_info() calls with g_debug(). The "do nothing" macro is a bit

[Spice-devel] [spice-server v2] dcc: Rework COMPRESS_DEBUG macro

2018-07-20 Thread Christophe Fergeau
Rather than using #ifdef COMPRESS_DEBUG spice_info(...); #endif we can #define COMPRESS_DEBUG to spice_debug() or to do nothing for a slight readability improvement. This opportunity is used to replace these spice_info() calls with g_debug(). The "do nothing" macro is a bit convoluted to ensu