logging: fix die() arg passing
authorMarko Kreen <markokr@gmail.com>
Sun, 12 Sep 2010 21:11:10 +0000 (00:11 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 15 Sep 2010 12:00:12 +0000 (15:00 +0300)
usual/logging.h

index 3f281b2157a153fe7feaaaf3cca4e720489b6083..f0d0df56e46df601b8ccd571d498b987304a1ae9 100644 (file)
@@ -104,8 +104,8 @@ void log_fatal(const char *file, int line, const char *func, bool show_perror,
        exit(1); } while (0)
 
 /* less verbose fatal() */
-#define die(msg, args...) do { LOG_CONTEXT_DEF; \
-       log_generic(LG_FATAL, msg, LOG_CONTEXT, ## args); \
+#define die(args...) do { LOG_CONTEXT_DEF; \
+       log_generic(LG_FATAL, LOG_CONTEXT, ## args); \
        exit(1); } while (0)
 
 void reset_logging(void);