[Xfce4-commits] [xfce/xfce4-session] 02/02: Make verbose logging conditional (Bug #11698)

noreply at xfce.org noreply at xfce.org
Sat Mar 28 15:10:49 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-session.

commit 26f9ae8df629f02af0773df2ed82db6b85c5b556
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sat Mar 28 16:57:24 2015 +0300

    Make verbose logging conditional (Bug #11698)
    
    Bug report and patch submitted by Zhihao Yuan
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 xfce4-session/xfsm-global.h |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list