changeset 33844:77bf38091051

Clarify console output when reading optional configuration files.
author diego
date Wed, 27 Jul 2011 13:40:16 +0000
parents 1d054f341ec3
children 786d1187960d
files codec-cfg.c input/input.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/codec-cfg.c	Wed Jul 27 13:40:13 2011 +0000
+++ b/codec-cfg.c	Wed Jul 27 13:40:16 2011 +0000
@@ -555,10 +555,10 @@
 #endif
     }
 
-    mp_msg(MSGT_CODECCFG, MSGL_V, "Reading %s: ", cfgfile);
+    mp_msg(MSGT_CODECCFG, MSGL_V, "Reading optional codecs config file %s: ", cfgfile);
 
     if ((fp = fopen(cfgfile, "r")) == NULL) {
-        mp_msg(MSGT_CODECCFG, MSGL_V, "Can't open '%s': %s\n", cfgfile, strerror(errno));
+        mp_msg(MSGT_CODECCFG, MSGL_V, "%s\n", strerror(errno));
         return 0;
     }
 
--- a/input/input.c	Wed Jul 27 13:40:13 2011 +0000
+++ b/input/input.c	Wed Jul 27 13:40:16 2011 +0000
@@ -1581,7 +1581,8 @@
   fd = open(file,O_RDONLY);
 
   if(fd < 0) {
-    mp_msg(MSGT_INPUT,MSGL_V,"Can't open input config file %s: %s\n",file,strerror(errno));
+    mp_msg(MSGT_INPUT, MSGL_V, "Reading optional input config file %s: %s\n",
+           file, strerror(errno));
     return 0;
   }