[Xfce4-commits] <xfconf:master> Only print debug messages when compiled with debugging.
Nick Schermer
noreply at xfce.org
Mon Jan 25 12:58:01 CET 2010
Updating branch refs/heads/master
to c1b8702ca34f4e21cd17940add53ac510aace2d6 (commit)
from c2cd125e1525e287802bea19449e0693e0b01082 (commit)
commit c1b8702ca34f4e21cd17940add53ac510aace2d6
Author: Nick Schermer <nick at xfce.org>
Date: Mon Jan 25 12:52:32 2010 +0100
Only print debug messages when compiled with debugging.
xfconf/xfconf-binding.c | 2 ++
xfconf/xfconf-cache.c | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/xfconf/xfconf-binding.c b/xfconf/xfconf-binding.c
index 990bd54..c532822 100644
--- a/xfconf/xfconf-binding.c
+++ b/xfconf/xfconf-binding.c
@@ -348,9 +348,11 @@ _xfconf_g_bindings_shutdown(void)
}
g_slist_free(bindings);
+#ifndef NDEBUG
/* scare the developer a bit */
g_debug("%d xfconf binding(s) are still connected. Are you sure all xfconf "
"channels are released before calling xfconf_shutdown()?", n);
+#endif
G_UNLOCK(__bindings);
}
diff --git a/xfconf/xfconf-cache.c b/xfconf/xfconf-cache.c
index 3de862e..b9613e9 100644
--- a/xfconf/xfconf-cache.c
+++ b/xfconf/xfconf-cache.c
@@ -491,13 +491,17 @@ xfconf_cache_set_property_reply_handler(DBusGProxy *proxy,
old_item = g_hash_table_lookup(cache->pending_calls, call);
if(G_UNLIKELY(!old_item)) {
+#ifndef NDEBUG
g_debug("Couldn't find old cache item based on pending call (libxfconf bug?)");
+#endif
goto out;
}
item = g_tree_lookup(cache->properties, old_item->property);
if(G_UNLIKELY(!item)) {
+#ifndef NDEBUG
g_debug("Couldn't find current cache item based on pending call (libxfconf bug?)");
+#endif
goto out;
}
More information about the Xfce4-commits
mailing list