- Add patch, to make verbose logging conditional

- Bump PORTREVISION

PR:		198560
Submitted by:	Zhihao Yuan <lichray@gmail.com>
This commit is contained in:
Olivier Duchateau 2015-03-28 20:28:08 +00:00
parent 2645d0cecb
commit 9675d444e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382552
2 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= xfce4-session
PORTVERSION= 4.12.1
PORTREVISION= 1
CATEGORIES= x11-wm xfce
MASTER_SITES= XFCE/src/xfce/${PORTNAME}/${PORTVERSION:R}
DIST_SUBDIR= xfce4

View File

@ -0,0 +1,16 @@
Make verbose logging conditional (Bug #11698)
--- xfce4-session/xfsm-global.h.orig 2014-09-28 14:51:01 UTC
+++ 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