[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-cvslog
Subject:    [xine-cvs] HG: xine-lib: "Configuration loaded" log item.
From:       Darren Salt <linux () youmustbejoking ! demon ! co ! uk>
Date:       2010-07-17 22:05:19
Message-ID: 780082d471a14ba52263.1279366185 () hg ! debian ! org
[Download RAW message or body]

# HG changeset patch
# User Darren Salt <linux@youmustbejoking.demon.co.uk>
# Date 1279366185 -3600
# Node ID 780082d471a14ba5226399ac09d7a9d91a3aee05
# Parent  80a96a21a581a854ceba0c1250bee00e9cab9f2b
"Configuration loaded" log item.

diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c
--- 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 @@
     }
 
     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) {

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic