Fixed glibtop_debug for calls without arguments.

This commit is contained in:
Benoit Dejean
2015-06-21 21:44:32 +02:00
parent fd29dae933
commit 6bdb9a76eb

View File

@@ -50,7 +50,7 @@ void glibtop_warn_io (const char *format, ...) G_GNUC_PRINTF(1, 2);
#define glibtop_debug(fmt, ...) \ #define glibtop_debug(fmt, ...) \
G_STMT_START { \ G_STMT_START { \
if (LIBGTOP_ENABLE_DEBUG) \ if (LIBGTOP_ENABLE_DEBUG) \
glibtop_debug_r(glibtop_global_server, fmt, __VA_ARGS__); \ glibtop_debug_r(glibtop_global_server, fmt, ##__VA_ARGS__); \
} G_STMT_END } G_STMT_END
void glibtop_debug_vr (glibtop *server, const char *format, va_list args); void glibtop_debug_vr (glibtop *server, const char *format, va_list args);