[Telepathy-commits] [telepathy-mission-control/master] Print the function name with the DEBUG macro

Alberto Mardegan alberto.mardegan at nokia.com
Thu Feb 26 03:11:14 PST 2009


---
 src/mcd-debug.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mcd-debug.h b/src/mcd-debug.h
index 37a581e..60cc38f 100644
--- a/src/mcd-debug.h
+++ b/src/mcd-debug.h
@@ -37,7 +37,7 @@ G_BEGIN_DECLS
 
 #define DEBUG(format, ...) G_STMT_START {   \
     if (_mcd_debug_get_level () > 0)        \
-        g_debug (format, ##__VA_ARGS__);    \
+        g_debug ("%s: " format, G_STRFUNC, ##__VA_ARGS__);    \
 } G_STMT_END
 
 /* reference count debugging */
-- 
1.5.6.5




More information about the telepathy-commits mailing list