summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/common.h b/common.h
index 55b7b1e..581cd0c 100644
--- a/common.h
+++ b/common.h
@@ -27,16 +27,20 @@
enum {
MBOX_LOG_NONE = 0,
- MBOX_LOG_VERBOSE = 1,
+ MBOX_LOG_INFO = 1,
MBOX_LOG_DEBUG = 2
} verbosity;
-#define MSG_OUT(f_, ...) do { if (verbosity >= MBOX_LOG_DEBUG) { \
+/* Error Messages */
+#define MSG_ERR(f_, ...) mbox_log(LOG_ERR, f_, ##__VA_ARGS__)
+/* Informational Messages */
+#define MSG_INFO(f_, ...) do { if (verbosity >= MBOX_LOG_INFO) { \
mbox_log(LOG_INFO, f_, ##__VA_ARGS__); \
} } while (0)
-#define MSG_ERR(f_, ...) do { if (verbosity >= MBOX_LOG_VERBOSE) { \
- mbox_log(LOG_ERR, f_, ##__VA_ARGS__); \
- } } while (0)
+/* Debug Messages */
+#define MSG_DBG(f_, ...) do { if (verbosity >= MBOX_LOG_DEBUG) { \
+ mbox_log(LOG_DEBUG, f_, ##__VA_ARGS__); \
+ } } while(0)
void (*mbox_vlog)(int p, const char *fmt, va_list args);
OpenPOWER on IntegriCloud