org.guifications.plugins: d9e7c27959d4ddfd06e6639c8f4c602468ce4572

rekkanoryo at guifications.org rekkanoryo at guifications.org
Thu Nov 22 16:15:05 CST 2007


-----------------------------------------------------------------
Revision: d9e7c27959d4ddfd06e6639c8f4c602468ce4572
Ancestor: 54b545430496e96c5f07e3ea1bf3a958315ecbf3
Author: rekkanoryo at guifications.org
Date: 2007-11-22T22:14:21
Branch: org.guifications.plugins

Modified files:
        enhancedhist/enhanced_hist.c

ChangeLog: 

Kill the last printf in favor of purple_debug_info and properly categorize
in the calls I had already converted.

-----------------------------------------------------------------
This revision's diffstat output:
 enhanced_hist.c |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
-------------- next part --------------
============================================================
--- enhancedhist/enhanced_hist.c	0b507776f65d834f257adc598ea0a9f1021d86b1
+++ enhancedhist/enhanced_hist.c	091c4b222947c9e1764f977e09d80a1233e47669
@@ -155,7 +155,7 @@ static void historize(PurpleConversation
 		while(logs->next && counter < (PREF_NUMBER_VAL - 1)) {
 			logs = logs->next;
 			counter++;
-			purple_debug_info("ehnahcedhist:", "Counter: %d\n", counter);
+			purple_debug_info("ehnahcedhist", "Counter: %d\n", counter);
 		}
 	} else {
 		struct tm *log_tm = NULL, *local_tm = NULL;
@@ -171,13 +171,14 @@ static void historize(PurpleConversation
 		log_tm = gmtime(&((PurpleLog*)logs->data)->time);
 		log_time = mktime(log_tm);
 
-		purple_debug_info("Local Time as int: %d \n", (int)t);
-		purple_debug_info("Log Time as int: %d \n", (int)mktime(log_tm));
+		purple_debug_info("enhancedhist", "Local Time as int: %d \n", (int)t);
+		purple_debug_info("enhancedhist", "Log Time as int: %d \n", (int)mktime(log_tm));
 
 		limit_time = (PREF_MINS_VAL * 60.0) + (PREF_HOURS_VAL * 60.0 * 60.0) +
-			(PREF_DAYS_VAL * 60.0 * 60.0 * 24.0);
+				(PREF_DAYS_VAL * 60.0 * 60.0 * 24.0);
 		diff_time = difftime(t, log_time);
-		printf("Time difference between local and log: %.21f \n",diff_time);
+		purple_debug_info("enhancedhist", "Time difference between local and log: %.21f \n",
+				diff_time);
 		
 		/* The most recent log is already too old, so lets return */
 		if(diff_time > limit_time) {


More information about the Plugins-commits mailing list