# HG changeset patch # User Sascha Wilde # Date 1395761512 -3600 # Node ID 6fa0e12ae1d25c0731f957ab330205cdc125e441 # Parent 6eb9149b65e19e3df16d1229ab3d577b6a6c4e8a Added more debug output. diff -r 6eb9149b65e1 -r 6fa0e12ae1d2 cinst/mozilla.c --- a/cinst/mozilla.c Tue Mar 25 16:24:32 2014 +0100 +++ b/cinst/mozilla.c Tue Mar 25 16:31:52 2014 +0100 @@ -104,6 +104,8 @@ if ((inifile = fopen(inifile_name, "r")) != NULL) { + DEBUGFPRINT("DEBUG: Searching for profile paths in: '%s'\n", inifile_name); + inifile_dirname = port_dirname(inifile_name); while (fgets(line, LINEBUFLEN, inifile) != NULL) { @@ -130,11 +132,15 @@ strncpy(path, value, LINEBUFLEN); if ((fqpath = port_realpath(path)) != NULL) { + DEBUGFPRINT("DEBUG: Found profile path: '%s'\n", fqpath) strv_append(&dirs, fqpath, strlen(fqpath)); free (fqpath); } else - return_code |= WARN_MOZ_PROFILE_DOES_NOT_EXIST; + { + DEBUGFPRINT("DEBUG: WARN! Non existent profile path: '%s'\n", path) + return_code |= WARN_MOZ_PROFILE_DOES_NOT_EXIST; + } } else if (str_equal(key, "IsRelative") && str_starts_with(value, "1")) @@ -144,6 +150,7 @@ } else { + DEBUGFPRINT("DEBUG: WARN! Could not open ini file: '%s'\n", inifile_name) return_code |= WARN_MOZ_FAILED_TO_OPEN_INI; } return dirs;