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 )
/* 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;
}
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;
}
/* 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;
}