summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2010-07-17 12:29:45 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2010-07-17 12:29:45 +0100
commit54c391569db59173988f22485f9d287d64ad19d7 (patch)
treef5f61f386a948904a2d3bc4f38cd2e2aa471bed6
parent3da8e08c83e25577c47b0117155b3c36198e0277 (diff)
downloadxine-lib-54c391569db59173988f22485f9d287d64ad19d7.tar.gz
xine-lib-54c391569db59173988f22485f9d287d64ad19d7.tar.bz2
"Configuration loaded" log item.
-rw-r--r--src/xine-engine/configfile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c
index 8b274a801..484d1d16f 100644
--- a/src/xine-engine/configfile.c
+++ b/src/xine-engine/configfile.c
@@ -24,6 +24,7 @@
#include "config.h"
#endif
+#include <errno.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -987,7 +988,13 @@ void xine_config_load (xine_t *xine, const char *filename) {
}
fclose (f_config);
+ xine_log(xine, XINE_LOG_MSG,
+ _("Loaded configuration from file '%s'\n"), filename);
+
}
+ else if (errno != ENOENT)
+ xine_log(xine, XINE_LOG_MSG,
+ _("Failed to load configuration from file '%s': %s\n"), filename, strerror (errno));
}
void xine_config_save (xine_t *xine, const char *filename) {