]> git.sesse.net Git - vlc/commitdiff
DV: use vlc_strerror_c()
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Dec 2013 17:04:53 +0000 (19:04 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 29 Dec 2013 13:36:03 +0000 (15:36 +0200)
modules/access/dv.c

index 3913f6cabce1f863131a83fdeda3333839684673..5fa6b69f6b47d4e64a6959a50dd084eb5ce8e56a 100644 (file)
@@ -339,7 +339,7 @@ static void* Raw1394EventThread( void *obj )
         while( ( result = poll( &p_sys->raw1394_poll, 1, -1 ) ) < 0 )
         {
             if( errno != EINTR )
-                msg_Err( p_access, "poll error: %m" );
+                msg_Err( p_access, "poll error: %s", vlc_strerror_c(errno) );
         }
 
         if( result > 0 && ( ( p_sys->raw1394_poll.revents & POLLIN )
@@ -451,13 +451,15 @@ static int Raw1394GetNumPorts( access_t *p_access )
     /* get a raw1394 handle */
     if( !( handle = raw1394_new_handle() ) )
     {
-        msg_Err( p_access, "raw1394 - failed to get handle: %m." );
+        msg_Err( p_access, "raw1394 - failed to get handle: %s",
+                 vlc_strerror_c(errno) );
         return VLC_EGENERIC;
     }
 
     if( ( n_ports = raw1394_get_port_info( handle, pinf, 16 ) ) < 0 )
     {
-        msg_Err( p_access, "raw1394 - failed to get port info: %m." );
+        msg_Err( p_access, "raw1394 - failed to get port info: %s",
+                 vlc_strerror_c(errno) );
         raw1394_destroy_handle( handle );
         return VLC_EGENERIC;
     }
@@ -476,13 +478,15 @@ static raw1394handle_t Raw1394Open( access_t *p_access, int port )
     handle = raw1394_new_handle();
     if( !handle )
     {
-        msg_Err( p_access, "raw1394 - failed to get handle: %m." );
+        msg_Err( p_access, "raw1394 - failed to get handle: %s",
+                 vlc_strerror_c(errno) );
         return NULL;
     }
 
     if( ( n_ports = raw1394_get_port_info( handle, pinf, 16 ) ) < 0 )
     {
-        msg_Err( p_access, "raw1394 - failed to get port info: %m." );
+        msg_Err( p_access, "raw1394 - failed to get port info: %s",
+                 vlc_strerror_c(errno) );
         raw1394_destroy_handle( handle );
         return NULL;
     }
@@ -490,7 +494,8 @@ static raw1394handle_t Raw1394Open( access_t *p_access, int port )
     /* tell raw1394 which host adapter to use */
     if( raw1394_set_port( handle, port ) < 0 )
     {
-        msg_Err( p_access, "raw1394 - failed to set set port: %m." );
+        msg_Err( p_access, "raw1394 - failed to set set port: %s",
+                 vlc_strerror_c(errno) );
         return NULL;
     }