if ((fd == -1) || fstat (fd, &stself.st))
{
- msg_Err (p_playlist, "cannot stat `%s': %s", psz_name,
- strerror (errno));
+ msg_Err (p_playlist, "cannot stat `%s': %m", psz_name);
return VLC_EGENERIC;
}
i_dir_content = utf8_loaddir (handle, &pp_dir_content, NULL, Sort);
if( i_dir_content == -1 )
{
- msg_Err (p_playlist, "cannot read `%s': %s", psz_name,
- strerror (errno));
+ msg_Err (p_playlist, "cannot read `%s': %m", psz_name);
return VLC_EGENERIC;
}
else if( i_dir_content <= 0 )
{
int err = errno;
if (err != ENOTDIR)
- msg_Err (obj, "%s: %s", path, strerror (err));
+ msg_Err (obj, "%s: %m", path);
else
msg_Dbg (obj, "skipping non-directory `%s'", path);
errno = err;