Xfce Wiki

Sub domains
 
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2015-03-28 16:57:24 +0300
committerEric Koegel <eric.koegel@gmail.com>2015-03-28 17:00:10 +0300
commit26f9ae8df629f02af0773df2ed82db6b85c5b556 (patch)
tree9c3b202f793459db14f13567f79d9dc20334e352
parent04e45b5bbdefe4e174c95dcbc70a725b8198b50d (diff)
downloadxfce4-session-26f9ae8df629f02af0773df2ed82db6b85c5b556.tar.gz
Make verbose logging conditional Bug #11698
Bug report and patch submitted by Zhihao Yuan Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
-rw-r--r--xfce4-session/xfsm-global.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/xfce4-session/xfsm-global.h b/xfce4-session/xfsm-global.h
index d2e0c29..d458712 100644
--- a/xfce4-session/xfsm-global.h
+++ b/xfce4-session/xfsm-global.h
@@ -49,7 +49,10 @@ extern XfsmSplashScreen *splash_screen;
#if defined(G_HAVE_ISO_VARARGS)
#define xfsm_verbose(...)\
- xfsm_verbose_real (__func__, __FILE__, __LINE__, __VA_ARGS__)
+G_STMT_START{ \
+ if (G_UNLIKELY (verbose)) \
+ xfsm_verbose_real (__func__, __FILE__, __LINE__, __VA_ARGS__); \
+}G_STMT_END
#else