Commit e3788b17 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

marq: use vlc_strerror_c()

parent 53b501a1
......@@ -31,13 +31,13 @@
# include "config.h"
#endif
#include <errno.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
#include <vlc_block.h>
#include <vlc_fs.h>
#include <vlc_strings.h>
/*****************************************************************************
......@@ -353,7 +353,7 @@ static char *MarqueeReadFile( filter_t *obj, const char *path )
FILE *stream = vlc_fopen( path, "rt" );
if( stream == NULL )
{
msg_Err( obj, "cannot open %s: %m", path );
msg_Err( obj, "cannot open %s: %s", path, vlc_strerror_c(errno) );
return NULL;
}
......@@ -362,7 +362,7 @@ static char *MarqueeReadFile( filter_t *obj, const char *path )
ssize_t len = getline( &line, &(size_t){ 0 }, stream );
if( len == -1 )
{
msg_Err( obj, "cannot read %s: %m", path );
msg_Err( obj, "cannot read %s: %s", path, vlc_strerror_c(errno) );
clearerr( stream );
line = NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment