# HG changeset patch # User rosfran # Date 1171550589 0 # Node ID 2c8b7e50e7853314492f92334f34188b612803ed # Parent 8b8394c611426f63e046b398eca33762a8f1f455 [svn r372] Removed g_printerr messages. diff -r 8b8394c61142 -r 2c8b7e50e785 gmyth/src/gmyth_socket.c --- a/gmyth/src/gmyth_socket.c Thu Feb 15 14:42:08 2007 +0000 +++ b/gmyth/src/gmyth_socket.c Thu Feb 15 14:43:09 2007 +0000 @@ -115,7 +115,6 @@ gint errorn = EADDRNOTAVAIL; g_return_val_if_fail ( addr != NULL, -1 ); - g_debug ("Calling %s\n", __FUNCTION__); /* hints = g_malloc0 ( sizeof(struct addrinfo) ); */ memset ( &hints, 0, sizeof(struct addrinfo) ); @@ -131,7 +130,7 @@ gmyth_debug ("Getting name resolution for: %s, %d\n", addr, port); if ( ( errorn = getaddrinfo(addr, portStr, &hints, addrInfo) ) != 0 ) { - g_printerr( "[%s] Socket ERROR: %s\n", __FUNCTION__, gai_strerror(errorn) ); + g_debug( "[%s] Socket ERROR: %s\n", __FUNCTION__, gai_strerror(errorn) ); } g_free (portStr); /* g_free (hints); */ @@ -142,7 +141,7 @@ gmyth_socket_find_match_address_uri( GMythURI* uri, gchar *address ) { if ( g_ascii_strcasecmp( gmyth_uri_get_host( uri ), address ) == 0 ) { - //g_printerr( "Found URI: %s !!!\n", rui_uri_getvalue(uri) ); + //g_debug( "Found URI: %s !!!\n", rui_uri_getvalue(uri) ); return 0; } else { return -1; @@ -537,13 +536,13 @@ if (gmyth_socket_try_connect (gmyth_socket->sd, (struct sockaddr *)addr_info0->ai_addr, addr_info0->ai_addrlen, timeout_val, &ret_code ) < 0 ) { - g_printerr( "[%s] Error connecting to backend!\n", __FUNCTION__ ); + g_debug( "[%s] Error connecting to backend!\n", __FUNCTION__ ); if (ret_code == ETIMEDOUT) - g_printerr( "[%s]\tBackend host unreachable!\n", __FUNCTION__ ); + g_debug( "[%s]\tBackend host unreachable!\n", __FUNCTION__ ); close (gmyth_socket->sd); gmyth_socket->sd = -1; - g_printerr ("ERROR: %s\n", gai_strerror(ret_code)); + g_debug ("ERROR: %s\n", gai_strerror(ret_code)); g_free (timeout_val); continue; } @@ -702,7 +701,7 @@ g_mutex_unlock( gmyth_socket->mutex ); done: if ( error != NULL ) { - g_printerr( "[%s] Error found reading data from IO channel: (%d, %s)\n", __FUNCTION__, error->code, error->message ); + g_debug( "[%s] Error found reading data from IO channel: (%d, %s)\n", __FUNCTION__, error->code, error->message ); ret = FALSE; g_error_free( error ); } @@ -1037,7 +1036,7 @@ str = g_string_new (buffer); if ( error != NULL ) { - g_printerr( "[%s] Error found receiving response from the IO channel: (%d, %s)\n", __FUNCTION__, error->code, error->message ); + g_debug( "[%s] Error found receiving response from the IO channel: (%d, %s)\n", __FUNCTION__, error->code, error->message ); str = NULL; g_error_free (error); }