diff --git a/src/config.c b/src/config.c index c162fde..a608528 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); @@ -164,7 +165,8 @@ ccsReadConfig (ConfigOption option, char *section; Bool ret; - iniFile = getConfigFile(); + iniFile = getConfigFile (); + printf("opening local config returned %p\n", iniFile); if (!iniFile) return ccsReadGlobalConfig (option, value); @@ -191,7 +193,9 @@ ccsReadConfig (ConfigOption option, *value = NULL; section = getSectionName(); + printf("reading local section %s\n", section); ret = ccsIniGetString (iniFile, section, entry, value); + printf("reading local entry %s returned %d\n", ret); free (section); ccsIniClose (iniFile); @@ -215,7 +219,7 @@ ccsWriteConfig (ConfigOption option, if (ccsReadConfig (option, &curVal) && strcmp (value, curVal) == 0) return TRUE; - iniFile = getConfigFile(); + iniFile = getConfigFile (TRUE); if (!iniFile) return FALSE; @@ -241,6 +245,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);