[nautilus] debug: check for flags in DEBUG_FILES



commit 46d6bbb1208c409b8507dc31ef6aaf895b55ba92
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Dec 2 14:55:06 2010 +0100

    debug: check for flags in DEBUG_FILES

 libnautilus-private/nautilus-debug.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-debug.c b/libnautilus-private/nautilus-debug.c
index 88fe319..436f4f9 100644
--- a/libnautilus-private/nautilus-debug.c
+++ b/libnautilus-private/nautilus-debug.c
@@ -112,6 +112,9 @@ nautilus_debug_files_valist (DebugFlags flag,
   if (G_UNLIKELY (!initialized))
     nautilus_debug_set_flags_from_env ();
 
+  if (!(flag & flags))
+    return;
+
   msg = g_strdup_vprintf (format, args);
 
   g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s:", msg);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]