[evolution-rss/evolution-rss-0-2-0] improve debug output



commit f81b0911b2c7d4ee501f05729d57548177683aa1
Author: Lucian Langa <lucilanga gnome org>
Date:   Wed May 4 22:38:18 2011 +0300

    improve debug output

 src/debug.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/debug.h b/src/debug.h
index e44b622..aa90814 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -19,8 +19,10 @@
 #ifndef __DEBUG_H__
 #define __DEBUG_H__ 1
 
-#define d(f, x...) if (rss_verbose_debug) { g_print("%s(%d) in %s():", __FILE__, __LINE__, __FUNCTION__);\
-			g_print(f, ## x);}
+#define d(f, x...) if (rss_verbose_debug) { g_print("%s: In function â??%sâ??:\n%s:%d:  ", __FILE__, \
+			__FUNCTION__, __FILE__, __LINE__);\
+			g_print(f, ## x); \
+			g_print("\n");}
 
 #define dp(f, x...) { g_print("%s(%d) %s():", __FILE__, __LINE__, __FUNCTION__);\
 			g_print(f, ## x);}



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