# HG changeset patch # User rosfran # Date 1168542337 0 # Node ID c7050cb68338ae6b98a0cf386543d2c09c46bef7 # Parent 6d84a80de234329ba6242f4c8b1e0f877b5522aa [svn r266] Changed dangerous calls to printf inside the code in gmyth_socket, used by debug messages (this caused memory allocation problems on Maemo). diff -r 6d84a80de234 -r c7050cb68338 gmyth/src/gmyth_socket.c --- a/gmyth/src/gmyth_socket.c Thu Jan 11 19:00:15 2007 +0000 +++ b/gmyth/src/gmyth_socket.c Thu Jan 11 19:05:37 2007 +0000 @@ -473,7 +473,7 @@ FD_ZERO( &fd_w ); FD_SET( fd, &fd_w ); - printf ("xxxxxxxxxxxx %ld\n", timeout->tv_sec); + gmyth_debug ("xxxxxxxxxxxx %ld\n", timeout->tv_sec); *err = select( FD_SETSIZE, NULL, &fd_w, NULL, timeout); if ( *err < 0 ) { g_warning( "[%s] Connection unsucessfull (timed out).\n", __FUNCTION__ ); @@ -565,11 +565,11 @@ /*timeout_val = g_new0 (struct timeval, 1);*/ timeout_val->tv_sec = timeout; - printf ("XXXXXXXXXXX setting timeout %ld\n", timeout_val->tv_sec); + gmyth_debug ("XXXXXXXXXXX setting timeout %ld\n", timeout_val->tv_sec); timeout_val->tv_usec = 0; } else { timeout_val->tv_sec = 0; - printf ("XXXXXXXXXXX timeout is ZERO. Setting timeout to the default value of 100 microseconds -> %ld\n", timeout_val->tv_sec); + gmyth_debug ("XXXXXXXXXXX timeout is ZERO. Setting timeout to the default value of 100 microseconds -> %ld\n", timeout_val->tv_sec); timeout_val->tv_usec = 100; }