From 1f80bea6ae0937cb91c0fc90b2196bf921552b99 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 15 Jul 2012 12:00:53 +0300 Subject: Fix DPRINTF --- src/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index 661c299..004a78c 100644 --- a/src/debug.h +++ b/src/debug.h @@ -32,7 +32,7 @@ extern pthread_mutex_t strerror_lock; #include #define DPRINTF(fmt, ...) do { \ pthread_mutex_lock(&strerror_lock); \ - fprintf(stderr, "DEBUG: " fmt "\n", __VA_ARGS__); \ + fprintf(stderr, "DEBUG: " fmt "\n", ##__VA_ARGS__); \ pthread_mutex_unlock(&strerror_lock); \ } while (0) #else -- cgit v1.2.3