All pastes #614000 Raw Edit

Meins

public text v1 · immutable
·published 2007-07-11 08:50 UTC
rendered paste body
diff --git a/src/config.c b/src/config.c
index c162fde..f20d698 100644
--- a/src/config.c
+++ b/src/config.c
@@ -147,6 +147,7 @@ ccsReadGlobalConfig (ConfigOption option,
 
     *value = NULL;
     section = getSectionName();
+    printf("reading from global section %s\n", section);
     ret = ccsIniGetString (iniFile, section, entry, value);
     free (section);
     ccsIniClose (iniFile);
@@ -165,6 +166,7 @@ ccsReadConfig (ConfigOption option,
     Bool          ret;
 
     iniFile = getConfigFile();
+    printf("opening local config returned %p\n", iniFile);
     if (!iniFile)
 	return ccsReadGlobalConfig (option, value);
 
@@ -191,6 +193,7 @@ ccsReadConfig (ConfigOption option,
 
     *value = NULL;
     section = getSectionName();
+    printf("reading local section %s\n", section);
     ret = ccsIniGetString (iniFile, section, entry, value);
     free (section);
     ccsIniClose (iniFile);
@@ -241,6 +244,7 @@ ccsWriteConfig (ConfigOption option,
     }
 
     section = getSectionName();
+    printf("writing %s to entry %s in section %s of local file\n", value, entry, section);
     ccsIniSetString (iniFile, section, entry, value);
     free (section);