[vlc-commits] D-Bus: use vlc_strerror_c()
Rémi Denis-Courmont
git at videolan.org
Sun Dec 29 15:16:32 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 29 15:56:58 2013 +0200| [7308be6b58f5abfcb71115f837fb988327b3fc78] | committer: Rémi Denis-Courmont
D-Bus: use vlc_strerror_c()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7308be6b58f5abfcb71115f837fb988327b3fc78
---
modules/control/dbus/dbus.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index ff13256..f0356ca 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -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
More information about the vlc-commits
mailing list