[svn r266] Changed dangerous calls to printf inside the code in gmyth_socket, used by debug messages (this caused memory allocation problems on Maemo). trunk
authorrosfran
Thu Jan 11 19:05:37 2007 +0000 (2007-01-11)
branchtrunk
changeset 265c7050cb68338
parent 264 6d84a80de234
child 266 1098f58ae8e1
[svn r266] Changed dangerous calls to printf inside the code in gmyth_socket, used by debug messages (this caused memory allocation problems on Maemo).
gmyth/src/gmyth_socket.c
     1.1 --- a/gmyth/src/gmyth_socket.c	Thu Jan 11 19:00:15 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_socket.c	Thu Jan 11 19:05:37 2007 +0000
     1.3 @@ -473,7 +473,7 @@
     1.4  	  FD_ZERO( &fd_w );
     1.5  	  FD_SET( fd, &fd_w );
     1.6  	
     1.7 -	  printf ("xxxxxxxxxxxx %ld\n", timeout->tv_sec);
     1.8 +	  gmyth_debug ("xxxxxxxxxxxx %ld\n", timeout->tv_sec);
     1.9  	  *err = select( FD_SETSIZE, NULL, &fd_w, NULL, timeout);
    1.10  	  if ( *err < 0 ) {
    1.11  	    g_warning( "[%s] Connection unsucessfull (timed out).\n", __FUNCTION__ );
    1.12 @@ -565,11 +565,11 @@
    1.13  	    /*timeout_val = g_new0 (struct timeval, 1);*/
    1.14  	    
    1.15              timeout_val->tv_sec = timeout;
    1.16 -	    printf ("XXXXXXXXXXX setting timeout %ld\n", timeout_val->tv_sec);
    1.17 +	    gmyth_debug ("XXXXXXXXXXX setting timeout %ld\n", timeout_val->tv_sec);
    1.18              timeout_val->tv_usec = 0;
    1.19  	} else {
    1.20        timeout_val->tv_sec = 0;
    1.21 -	    printf ("XXXXXXXXXXX timeout is ZERO. Setting timeout to the default value of 100 microseconds -> %ld\n", timeout_val->tv_sec);
    1.22 +	    gmyth_debug ("XXXXXXXXXXX timeout is ZERO. Setting timeout to the default value of 100 microseconds -> %ld\n", timeout_val->tv_sec);
    1.23        timeout_val->tv_usec = 100;
    1.24  	}
    1.25