# HG changeset patch # User Herman Bloggs # Date 1068953017 0 # Node ID 77727178a1dfaa56ed9c8e1c15f13c6d24915d60 # Parent 7398a8d6862d17e5ee0f58e86a2a47025139d56c [gaim-migrate @ 8139] Temp debug print op added committer: Tailor Script diff -r 7398a8d6862d -r 77727178a1df src/win32/win32dep.c --- a/src/win32/win32dep.c Sun Nov 16 01:55:59 2003 +0000 +++ b/src/win32/win32dep.c Sun Nov 16 03:23:37 2003 +0000 @@ -270,6 +270,17 @@ g_free(old_home); } +static void wgaim_debug_print(GaimDebugLevel level, const char *category, const char *format, va_list args) { + char *str = g_strdup_vprintf(format, args); + printf("%s%s%s", category?category:"", category?": ":"",str); + g_free(str); +} + +static GaimDebugUiOps ops = +{ + wgaim_debug_print +}; + /* * PUBLIC CODE */ @@ -501,6 +512,7 @@ char *perlenv; char *newenv; + gaim_debug_set_ui_ops(&ops); gaim_debug(GAIM_DEBUG_INFO, "wgaim", "wgaim_init start\n"); gaimexe_hInstance = hint;