]> git.sesse.net Git - vlc/commitdiff
Improve debug messages (tracking down some DCCP issues)
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 26 Sep 2007 18:47:34 +0000 (18:47 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 26 Sep 2007 18:47:34 +0000 (18:47 +0000)
src/network/tcp.c

index 506a3d8e8458721817d8c13071eaa7f1ef264054..cdba85e2c15a0f2342a1e06e97ab59d47fabb951 100644 (file)
@@ -162,6 +162,7 @@ int __net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
                 msg_Err( p_this, "connection failed: %m" );
                 goto next_ai;
             }
+            msg_Dbg( p_this, "connection: %m" );
 
             var_Create( p_this, "ipv4-timeout",
                         VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
@@ -173,7 +174,6 @@ int __net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
             }
             d = div( timeout.i_int, 100 );
 
-            msg_Dbg( p_this, "connection in progress" );
             for (;;)
             {
                 struct pollfd ufd = { .fd = fd, .events = POLLOUT };
@@ -222,6 +222,7 @@ int __net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
 #endif
         }
 
+        msg_Dbg( p_this, "connection succeeded (socket = %d)", fd );
         i_handle = fd; /* success! */
         break;