[vlc-commits] logger: use vlc_strerror_c()
Rémi Denis-Courmont
git at videolan.org
Sun Dec 29 15:16:33 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 29 15:58:52 2013 +0200| [2ec2965db506b3455d64a3d250bb3c0c7c7fb32c] | committer: Rémi Denis-Courmont
logger: use vlc_strerror_c()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ec2965db506b3455d64a3d250bb3c0c7c7fb32c
---
modules/misc/logger.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index 202db98..fa30ba5 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -37,6 +37,7 @@
#include <stdarg.h>
#include <assert.h>
+#include <errno.h>
#ifdef __ANDROID__
# include <android/log.h>
@@ -303,7 +304,8 @@ static int Open( vlc_object_t *p_this )
p_sys->p_file = vlc_fopen( filename, "at" );
if( p_sys->p_file == NULL )
{
- msg_Err( p_intf, "error opening logfile `%s': %m", filename );
+ msg_Err( p_intf, "error opening logfile `%s': %s", filename,
+ vlc_strerror_c(errno) );
free( psz_file );
free( p_sys );
return VLC_EGENERIC;
More information about the vlc-commits
mailing list