[vlc-commits] dsm: fix logs

Thomas Guillem git at videolan.org
Tue Jan 12 09:58:44 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jan 12 08:58:34 2016 +0100| [6478eb26e30999149edabd78b3e9b990c63dc590] | committer: Thomas Guillem

dsm: fix logs

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6478eb26e30999149edabd78b3e9b990c63dc590
---

 modules/access/dsm/access.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index 0f8330b..6597a29 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -151,8 +151,6 @@ static int Open( vlc_object_t *p_this )
     if( get_address( p_access ) != VLC_SUCCESS )
         goto error;
 
-    msg_Dbg( p_access, "Creds: username = %s, domain = %s",
-             p_sys->creds.login, p_sys->creds.domain );
     msg_Dbg( p_access, "Session: Host name = %s, ip = %s", p_sys->netbios_name,
              inet_ntoa( p_sys->addr ) );
 
@@ -355,14 +353,16 @@ static int login( access_t *p_access )
                 goto success;
         }
 
-        msg_Err( p_access, "Unable to login with username = %s, domain = %s",
-                   p_sys->creds.login, p_sys->creds.domain );
+        msg_Err( p_access, "Unable to login with username = '%s', domain = '%s'",
+                 psz_login, psz_domain );
         goto error;
     }
     else if( smb_session_is_guest( p_sys->p_session )  )
         msg_Warn( p_access, "Login failure but you were logged in as a Guest");
 
 success:
+    msg_Dbg( p_access, "Creds: username = '%s', domain = '%s'",
+             psz_login, psz_domain );
     p_sys->creds.login = strdup(psz_login);
     p_sys->creds.password = strdup(psz_password);
     p_sys->creds.domain = strdup(psz_domain);



More information about the vlc-commits mailing list