]> git.sesse.net Git - vlc/commitdiff
avoid mere whitespaces when hostname is not specified
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 23 Jan 2008 17:44:27 +0000 (17:44 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 23 Jan 2008 17:44:27 +0000 (17:44 +0000)
src/network/udp.c

index 624d28e662dcad529f8094a97ca13bbd9e9cfb3c..c6e71ab55f9d5f32fdd60279879763d6257ca0c9 100644 (file)
@@ -623,12 +623,12 @@ int __net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
     memset( &hints, 0, sizeof( hints ) );
     hints.ai_socktype = SOCK_DGRAM;
 
-    msg_Dbg( p_this, "net: connecting to %s port %d", psz_host, i_port );
+    msg_Dbg( p_this, "net: connecting to [%s]:%d", psz_host, i_port );
 
     i_val = vlc_getaddrinfo( p_this, psz_host, i_port, &hints, &res );
     if( i_val )
     {
-        msg_Err( p_this, "cannot resolve %s port %d : %s", psz_host, i_port,
+        msg_Err( p_this, "cannot resolve [%s]:%d : %s", psz_host, i_port,
                  vlc_gai_strerror( i_val ) );
         return -1;
     }