summaryrefslogtreecommitdiffstats
path: root/xup
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-07-12 12:22:48 -0700
committerJim Grandy <jgrandy@authentic8.com>2013-08-22 12:55:31 -0700
commit2c70a0e1f894b26c3aa40fcb160807088630bec9 (patch)
treec89288b3a0771803972e29d62804bffae0df0e4c /xup
parent8055745cebd25a8ac21e715bc9eb20ae01d36a23 (diff)
downloadxrdp-proprietary-2c70a0e1f894b26c3aa40fcb160807088630bec9.tar.gz
xrdp-proprietary-2c70a0e1f894b26c3aa40fcb160807088630bec9.zip
part of merge, no logic change, add -g to Makefile and LLOGLN to xup.c
Diffstat (limited to 'xup')
-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