aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h
index e87b215..11b0cf6 100644
--- a/include/common.h
+++ b/include/common.h
@@ -38,10 +38,12 @@ extern "C" {
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
/* Verbose messages */
-#define verbose(verbose, fmt, ...) do { \
+#define bareverbose(verbose, fmt, ...) do { \
if (verbose) \
- printf(PROGRAM_NAME ": " fmt "\n", ##__VA_ARGS__); \
+ printf(fmt, ##__VA_ARGS__); \
} while(0)
+#define verbose(verbose, fmt, ...) \
+ bareverbose(verbose, PROGRAM_NAME ": " fmt "\n", ##__VA_ARGS__)
/* Normal messages */
#define normsg(fmt, ...) do { \