summaryrefslogtreecommitdiffstats
path: root/xup/xup.c
diff options
context:
space:
mode:
Diffstat (limited to 'xup/xup.c')
-rw-r--r--xup/xup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xup/xup.c b/xup/xup.c
index 71cd0be3..a4fe39d0 100644
--- a/xup/xup.c
+++ b/xup/xup.c
@@ -20,6 +20,12 @@
#include "xup.h"
+#define LOG_LEVEL 1
+#define LLOG(_level, _args) \
+ do { if (_level < LOG_LEVEL) { g_write _args ; } } while (0)
+#define LLOGLN(_level, _args) \
+ do { if (_level < LOG_LEVEL) { g_writeln _args ; } } while (0)
+
/******************************************************************************/
/* returns error */
int DEFAULT_CC