telepathy-mission-control: WARNING, etc. macros: add

Simon McVittie smcv at kemper.freedesktop.org
Mon Oct 8 07:27:44 PDT 2012


Module: telepathy-mission-control
Branch: master
Commit: caacfe66c11a3c01fd29e935dd7b0ea7b9b474a6
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=caacfe66c11a3c01fd29e935dd7b0ea7b9b474a6

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Fri Sep 21 15:42:16 2012 +0100

WARNING, etc. macros: add

Signed-off-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391
Reviewed-by: Xavier Claessens <xavier.claessens at collabora.co.uk>

---

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

diff --git a/src/mcd-debug.h b/src/mcd-debug.h
index 66fdafc..f9bd022 100644
--- a/src/mcd-debug.h
+++ b/src/mcd-debug.h
@@ -47,6 +47,15 @@ G_BEGIN_DECLS
 
 #endif /* ENABLE_DEBUG */
 
+#define MESSAGE(format, ...) \
+  g_message ("%s: " format, G_STRFUNC, ##__VA_ARGS__)
+#define WARNING(format, ...) \
+  g_warning ("%s: " format, G_STRFUNC, ##__VA_ARGS__)
+#define CRITICAL(format, ...) \
+  g_critical ("%s: " format, G_STRFUNC, ##__VA_ARGS__)
+#define ERROR(format, ...) \
+  g_error ("%s: " format, G_STRFUNC, ##__VA_ARGS__)
+
 extern gint mcd_debug_level;
 
 void mcd_debug_init (void);



More information about the telepathy-commits mailing list