From: Christian H. <ch...@us...> - 2003-04-26 17:36:55
|
Update of /cvsroot/gaim/gaim/plugins In directory sc8-pr-cvs1:/tmp/cvs-serv27971a Modified Files: autorecon.c filectl.c idle.c raw.c simple.c spellchk.c timestamp.c Log Message: debug_printf -> gaim_debug Index: autorecon.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/autorecon.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- autorecon.c 25 Apr 2003 06:47:13 -0000 1.24 +++ autorecon.c 26 Apr 2003 17:36:51 -0000 1.25 @@ -1,11 +1,5 @@ #include "config.h" -#if 0 -#ifndef GAIM_PLUGINS -#define GAIM_PLUGINS -#endif -#endif - #include "gaim.h" #include "prpl.h" @@ -26,13 +20,13 @@ static gboolean do_signon(gpointer data) { struct gaim_account *account = data; - debug_printf("do_signon called\n"); + gaim_debug(GAIM_DEBUG_INFO, "autorecon", "do_signon called\n"); if (g_slist_index(gaim_accounts, account) < 0) return FALSE; - debug_printf("calling serv_login\n"); + gaim_debug(GAIM_DEBUG_INFO, "autorecon", "calling serv_login\n"); serv_login(account); - debug_printf("done calling serv_login\n"); + gaim_debug(GAIM_DEBUG_INFO, "autorecon", "done calling serv_login\n"); tim = 0; return FALSE; } Index: filectl.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/filectl.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- filectl.c 25 Apr 2003 06:47:15 -0000 1.16 +++ filectl.c 26 Apr 2003 17:36:51 -0000 1.17 @@ -35,7 +35,7 @@ while (fgets(buffer, sizeof buffer, file)) { if (buffer[strlen(buffer) - 1] == '\n') buffer[strlen(buffer) - 1] = 0; - debug_printf("read: %s\n", buffer); + gaim_debug(GAIM_DEBUG_MISC, "filectl", "read: %s\n", buffer); command = getarg(buffer, 0, 0); if (!strncasecmp(command, "signon", 6)) { struct gaim_account *account = NULL; @@ -159,7 +159,8 @@ if ((stat (file, &finfo) == 0) && (finfo.st_size > 0)) if (mtime != finfo.st_mtime) { - debug_printf("control changed, checking\n"); + gaim_debug(GAIM_DEBUG_INFO, "filectl", + "control changed, checking\n"); run_commands(); } } Index: idle.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/idle.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- idle.c 25 Apr 2003 06:47:16 -0000 1.12 +++ idle.c 26 Apr 2003 17:36:51 -0000 1.13 @@ -20,7 +20,8 @@ if (!gc) { return; } - debug_printf("setting idle time for %s to %d\n", gc->username, tm); + gaim_debug(GAIM_DEBUG_INFO, "idle", + "setting idle time for %s to %d\n", gc->username, tm); time(&t); t -= 60 * tm; gc->lastsent = t; Index: raw.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/raw.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- raw.c 25 Apr 2003 06:47:16 -0000 1.6 +++ raw.c 26 Apr 2003 17:36:51 -0000 1.7 @@ -62,18 +62,18 @@ write(*a, &seqno, 2); write(*a, &len, 2); write(*a, txt, ntohs(len)); - debug_printf("TOC C: %s\n", txt); + gaim_debug(GAIM_DEBUG_MISC, "raw", "TOC C: %s\n", txt); } break; case PROTO_MSN: write(*(int *)gc->proto_data, txt, strlen(txt)); write(*(int *)gc->proto_data, "\r\n", 2); - debug_printf("MSN C: %s\n", txt); + gaim_debug(GAIM_DEBUG_MISC, "raw", "MSN C: %s\n", txt); break; case PROTO_IRC: write(*(int *)gc->proto_data, txt, strlen(txt)); write(*(int *)gc->proto_data, "\r\n", 2); - debug_printf("IRC C: %s\n", txt); + gaim_debug(GAIM_DEBUG_MISC, "raw", "IRC C: %s\n", txt); break; case PROTO_JABBER: jab_send_raw(*(jconn *)gc->proto_data, txt); Index: simple.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/simple.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- simple.c 25 Apr 2003 06:47:16 -0000 1.9 +++ simple.c 26 Apr 2003 17:36:52 -0000 1.10 @@ -4,7 +4,7 @@ static gboolean plugin_load(GaimPlugin *plugin) { - debug_printf("simple plugin loaded.\n"); + gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin loaded.\n"); return TRUE; } @@ -12,7 +12,7 @@ static gboolean plugin_unload(GaimPlugin *plugin) { - debug_printf("simple plugin unloaded.\n"); + gaim_debug(GAIM_DEBUG_INFO, "simple", "simple plugin unloaded.\n"); return TRUE; } Index: spellchk.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/spellchk.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- spellchk.c 25 Apr 2003 06:47:16 -0000 1.36 +++ spellchk.c 26 Apr 2003 17:36:52 -0000 1.37 @@ -339,7 +339,8 @@ } while(gtk_tree_model_iter_next(GTK_TREE_MODEL(model), &iter)); } if(fclose(f)) { - debug_printf("Error writing to %s: %m\n", tempfilename); + gaim_debug(GAIM_DEBUG_ERROR, "spellchk", + "Error writing to %s: %m\n", tempfilename); unlink(tempfilename); g_free(name); return; Index: timestamp.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/timestamp.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- timestamp.c 25 Apr 2003 06:47:16 -0000 1.12 +++ timestamp.c 26 Apr 2003 17:36:52 -0000 1.13 @@ -50,7 +50,7 @@ tm = 0; tm = CLAMP(gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)), 1, G_MAXINT); - debug_printf("setting time to %d mins\n", tm); + gaim_debug(GAIM_DEBUG_MISC, "timestamp", "setting time to %d mins\n", tm); tm = tm * 60 * 1000; |