[evolution-rss] improve debug output



commit 202d18a489f2d27576098e57540f4543313eee24
Author: Lucian Langa <lucilanga gnome org>
Date:   Wed May 4 22:26:44 2011 +0300

    improve debug output

 src/debug.h |    6 ++++--
 src/rss.c   |    2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/debug.h b/src/debug.h
index 592cff2..8e487d0 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);}
diff --git a/src/rss.c b/src/rss.c
index 8f0fbdb..5535c9c 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -4917,7 +4917,7 @@ e_plugin_lib_enable(EPlugin *ep, int enable)
 	//	textdomain (GETTEXT_PACKAGE);
 		rss_gconf = gconf_client_get_default();
 		upgrade = 1;
-		d = getenv("RSS_VERBOSE_DEBUG");
+		d = getenv("RSS_DEBUG");
 		if (d)
 			rss_verbose_debug = atoi(d);
 



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