#include <stdio.h>
#include <stdlib.h>
-#define lxc_debug_stream(stream, format, ...) \
- do { \
- fprintf(stream, "%s: %d: %s: " format "\n", __FILE__, __LINE__, \
- __func__, __VA_ARGS__); \
+#define lxc_debug_stream(stream, format, ...) \
+ do { \
+ fprintf(stream, "%s: %d: %s: " format "\n", __FILE__, \
+ __LINE__, __func__, ##__VA_ARGS__); \
} while (false)
-#define lxc_error(format, ...) lxc_debug_stream(stderr, format, __VA_ARGS__)
-#define lxc_debug(format, ...) lxc_debug_stream(stdout, format, __VA_ARGS__)
+#define lxc_error(format, ...) lxc_debug_stream(stderr, format, ##__VA_ARGS__)
+#define lxc_debug(format, ...) lxc_debug_stream(stdout, format, ##__VA_ARGS__)
#define lxc_test_assert_stringify(expression, stringify_expression) \
do { \