… | |
… | |
979 | g_return_if_fail (format != NULL); |
979 | g_return_if_fail (format != NULL); |
980 | |
980 | |
981 | va_start (args, format); |
981 | va_start (args, format); |
982 | string = g_strdup_vprintf (format, args); |
982 | string = g_strdup_vprintf (format, args); |
983 | va_end (args); |
983 | va_end (args); |
984 | |
984 | |
|
|
985 | //#ifdef HAVE_API_ANDROID |
|
|
986 | #include "debug.h" |
|
|
987 | dbg(0, string); |
|
|
988 | //#endif |
|
|
989 | |
|
|
990 | #if 0 |
985 | g_mutex_lock (g_messages_lock); |
991 | g_mutex_lock (g_messages_lock); |
986 | local_glib_print_func = glib_print_func; |
992 | local_glib_print_func = glib_print_func; |
987 | g_mutex_unlock (g_messages_lock); |
993 | g_mutex_unlock (g_messages_lock); |
988 | |
994 | |
989 | if (local_glib_print_func) |
995 | if (local_glib_print_func) |
… | |
… | |
1001 | fputs (lstring, stdout); |
1007 | fputs (lstring, stdout); |
1002 | g_free (lstring); |
1008 | g_free (lstring); |
1003 | } |
1009 | } |
1004 | fflush (stdout); |
1010 | fflush (stdout); |
1005 | } |
1011 | } |
|
|
1012 | #endif |
|
|
1013 | |
1006 | g_free (string); |
1014 | g_free (string); |
1007 | } |
1015 | } |
1008 | |
1016 | |
1009 | GPrintFunc |
1017 | GPrintFunc |
1010 | g_set_printerr_handler (GPrintFunc func) |
1018 | g_set_printerr_handler (GPrintFunc func) |