[svn r372] Removed g_printerr messages. trunk
authorrosfran
Thu Feb 15 14:43:09 2007 +0000 (2007-02-15)
branchtrunk
changeset 3692c8b7e50e785
parent 368 8b8394c61142
child 370 012970790473
[svn r372] Removed g_printerr messages.
gmyth/src/gmyth_socket.c
     1.1 --- a/gmyth/src/gmyth_socket.c	Thu Feb 15 14:42:08 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_socket.c	Thu Feb 15 14:43:09 2007 +0000
     1.3 @@ -115,7 +115,6 @@
     1.4      gint errorn = EADDRNOTAVAIL;
     1.5   
     1.6      g_return_val_if_fail ( addr != NULL, -1 );
     1.7 -    g_debug ("Calling %s\n", __FUNCTION__);
     1.8  
     1.9      /* hints = g_malloc0 ( sizeof(struct addrinfo) ); */
    1.10      memset ( &hints, 0, sizeof(struct addrinfo) );
    1.11 @@ -131,7 +130,7 @@
    1.12      gmyth_debug ("Getting name resolution for: %s, %d\n", addr, port);
    1.13  
    1.14      if ( ( errorn = getaddrinfo(addr, portStr, &hints, addrInfo) ) != 0 ) {
    1.15 -		g_printerr( "[%s] Socket ERROR: %s\n", __FUNCTION__, gai_strerror(errorn) );
    1.16 +		g_debug( "[%s] Socket ERROR: %s\n", __FUNCTION__, gai_strerror(errorn) );
    1.17      }
    1.18      g_free (portStr);
    1.19      /* g_free (hints); */
    1.20 @@ -142,7 +141,7 @@
    1.21  gmyth_socket_find_match_address_uri( GMythURI* uri, gchar *address ) {
    1.22  
    1.23          if ( g_ascii_strcasecmp( gmyth_uri_get_host( uri ), address ) == 0 ) {
    1.24 -                //g_printerr( "Found URI: %s !!!\n", rui_uri_getvalue(uri) );
    1.25 +                //g_debug( "Found URI: %s !!!\n", rui_uri_getvalue(uri) );
    1.26                  return 0;
    1.27          } else {
    1.28                  return -1;
    1.29 @@ -537,13 +536,13 @@
    1.30          if (gmyth_socket_try_connect (gmyth_socket->sd, (struct sockaddr *)addr_info0->ai_addr,
    1.31                  addr_info0->ai_addrlen, timeout_val, &ret_code ) < 0 )
    1.32          {
    1.33 -            g_printerr( "[%s] Error connecting to backend!\n", __FUNCTION__ );
    1.34 +            g_debug( "[%s] Error connecting to backend!\n", __FUNCTION__ );
    1.35              if (ret_code == ETIMEDOUT)
    1.36 -                g_printerr( "[%s]\tBackend host unreachable!\n", __FUNCTION__ );
    1.37 +                g_debug( "[%s]\tBackend host unreachable!\n", __FUNCTION__ );
    1.38  
    1.39              close (gmyth_socket->sd);
    1.40              gmyth_socket->sd = -1;
    1.41 -            g_printerr ("ERROR: %s\n", gai_strerror(ret_code));
    1.42 +            g_debug ("ERROR: %s\n", gai_strerror(ret_code));
    1.43  	    g_free (timeout_val);
    1.44              continue;
    1.45          }
    1.46 @@ -702,7 +701,7 @@
    1.47      g_mutex_unlock( gmyth_socket->mutex );
    1.48  done:
    1.49      if ( error != NULL ) {
    1.50 -		g_printerr( "[%s] Error found reading data from IO channel: (%d, %s)\n", __FUNCTION__, error->code, error->message );
    1.51 +		g_debug( "[%s] Error found reading data from IO channel: (%d, %s)\n", __FUNCTION__, error->code, error->message );
    1.52  		ret = FALSE;
    1.53  		g_error_free( error );
    1.54      }
    1.55 @@ -1037,7 +1036,7 @@
    1.56  		str = g_string_new (buffer);
    1.57  
    1.58      if ( error != NULL ) {
    1.59 -		g_printerr( "[%s] Error found receiving response from the IO channel: (%d, %s)\n", __FUNCTION__, error->code, error->message );
    1.60 +		g_debug( "[%s] Error found receiving response from the IO channel: (%d, %s)\n", __FUNCTION__, error->code, error->message );
    1.61  		str = NULL;
    1.62  		g_error_free (error);
    1.63      }