From: RĂ©mi Denis-Courmont Date: Sun, 29 Dec 2013 13:56:58 +0000 (+0200) Subject: D-Bus: use vlc_strerror_c() X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7308be6b58f5abfcb71115f837fb988327b3fc78;p=vlc D-Bus: use vlc_strerror_c() --- diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c index ff13256a0a..f0356ca197 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