]> git.sesse.net Git - vlc/commitdiff
D-Bus: use vlc_strerror_c()
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 29 Dec 2013 13:56:58 +0000 (15:56 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 29 Dec 2013 13:59:57 +0000 (15:59 +0200)
modules/control/dbus/dbus.c

index ff13256a0a13da935744087d6f739cb131e378b2..f0356ca197efc8c5fd87b7761f81e9ea23cdbd8f 100644 (file)
@@ -820,7 +820,7 @@ static void *Run( void *data )
 
         if( -1 == i_pollres )
         { /* XXX: What should we do when poll() fails ? */
-            msg_Err( p_intf, "poll() failed: %m" );
+            msg_Err( p_intf, "poll() failed: %s", vlc_strerror_c(errno) );
             vlc_restorecancel( canc );
             continue;
         }
@@ -887,7 +887,8 @@ static void   wakeup_main_loop( void *p_data )
     intf_thread_t *p_intf = (intf_thread_t*) p_data;
 
     if( !write( p_intf->p_sys->p_pipe_fds[PIPE_IN], "\0", 1 ) )
-        msg_Err( p_intf, "Could not wake up the main loop: %m" );
+        msg_Err( p_intf, "Could not wake up the main loop: %s",
+                 vlc_strerror_c(errno) );
 }
 
 /* Flls a callback_info_t data structure in response