diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-05-01 05:44:38 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-05-01 05:44:38 +0800 |
commit | 692886962aec6022d4fab9cdbd9867f2acd7f75c (patch) | |
tree | f0db8cc8325ed3b377d5663c7377db6967e41e8b /libempathy/empathy-utils.c | |
parent | fb06002dc6fcf523f22f671aeaf22054515e926a (diff) | |
download | gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.gz gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.bz2 gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.lz gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.xz gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.zst gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.zip |
Make use of tp-glib debug system.
svn path=/trunk/; revision=1066
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r-- | libempathy/empathy-utils.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 8f5c72df5..fe6a787bb 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -37,13 +37,13 @@ #include <telepathy-glib/channel.h> #include <telepathy-glib/dbus.h> -#include "empathy-debug.h" #include "empathy-utils.h" #include "empathy-contact-factory.h" #include "empathy-contact-manager.h" #include "empathy-tp-group.h" -#define DEBUG_DOMAIN "Utils" +#define DEBUG_FLAG EMPATHY_DEBUG_OTHER +#include "empathy-debug.h" static void regex_init (void); @@ -151,9 +151,7 @@ empathy_regex_match (EmpathyRegExType type, } if (type != EMPATHY_REGEX_ALL) { - empathy_debug (DEBUG_DOMAIN, - "Found %d matches for regex type:%d", - num_matches, type); + DEBUG ("Found %d matches for regex type:%d", num_matches, type); return num_matches; } @@ -175,9 +173,7 @@ empathy_regex_match (EmpathyRegExType type, } } - empathy_debug (DEBUG_DOMAIN, - "Found %d matches for ALL regex types", - num_matches); + DEBUG ("Found %d matches for ALL regex types", num_matches); return num_matches; } @@ -222,7 +218,7 @@ empathy_xml_validate (xmlDoc *doc, g_free (path); path = g_build_filename (DATADIR, "empathy", dtd_filename, NULL); } - empathy_debug (DEBUG_DOMAIN, "Loading dtd file %s", path); + DEBUG ("Loading dtd file %s", path); /* The list of valid chars is taken from libxml. */ escaped = xmlURIEscapeStr (path, ":@&=+$,/?;"); @@ -373,9 +369,8 @@ empathy_call_with_contact (EmpathyContact *contact) &object_path, &error, NULL)) { - empathy_debug (DEBUG_DOMAIN, - "Couldn't request channel: %s", - error ? error->message : "No error given"); + DEBUG ("Couldn't request channel: %s", + error ? error->message : "No error given"); g_clear_error (&error); g_object_unref (connection); return; @@ -562,7 +557,7 @@ static void run_until_ready_cb (RunUntilReadyData *data) { if (!data->func || data->func (data->object, data->user_data)) { - empathy_debug (DEBUG_DOMAIN, "Object %p is ready", data->object); + DEBUG ("Object %p is ready", data->object); g_main_loop_quit (data->loop); } } @@ -595,8 +590,7 @@ empathy_run_until_ready_full (gpointer object, return; } - empathy_debug (DEBUG_DOMAIN, "Starting run until ready for object %p", - object); + DEBUG ("Starting run until ready for object %p", object); data.func = func; data.user_data = user_data; |