summaryrefslogtreecommitdiff
path: root/navit/start_real.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-11-22 22:34:19 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-11-22 22:34:19 +0000
commit2a6aa9b917249f44e4aa27d88e255f61eb171d6a (patch)
tree0ad46b248e42f96e93b54874aa3b073ad1273aa1 /navit/start_real.c
parent05edfdebd6b83267121b11538abafe39bff266e7 (diff)
downloadnavit-2a6aa9b917249f44e4aa27d88e255f61eb171d6a.tar.gz
Refactor:core:Introduce enum for debug levels, and use it everywhere.|First part of #1269.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5960 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/start_real.c')
-rw-r--r--navit/start_real.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/navit/start_real.c b/navit/start_real.c
index 8abd0bbd1..66958410c 100644
--- a/navit/start_real.c
+++ b/navit/start_real.c
@@ -184,12 +184,12 @@ int main_real(int argc, char * const* argv)
for (;;) {
if (li == NULL) {
// We have not found an existing config file from all possibilities
- dbg(0, "%s", _("No config file navit.xml, navit.xml.local found\n"));
+ dbg(lvl_error, "%s", _("No config file navit.xml, navit.xml.local found\n"));
return 4;
}
// Try the next config file possibility from the list
config_file = li->data;
- dbg(1,"trying %s\n",config_file);
+ dbg(lvl_warning,"trying %s\n",config_file);
if (file_exists(config_file)) {
break;
}
@@ -197,14 +197,14 @@ int main_real(int argc, char * const* argv)
li = g_list_next(li);
}
- dbg(0,"Loading %s\n",config_file);
+ dbg(lvl_error,"Loading %s\n",config_file);
if (!config_load(config_file, &error)) {
- dbg(0, _("Error parsing config file '%s': %s\n"), config_file, error ? error->message : "");
+ dbg(lvl_error, _("Error parsing config file '%s': %s\n"), config_file, error ? error->message : "");
} else {
- dbg(0, _("Using config file '%s'\n"), config_file);
+ dbg(lvl_error, _("Using config file '%s'\n"), config_file);
}
if (! config) {
- dbg(0, _("Error: No configuration found in config file '%s'\n"), config_file);
+ dbg(lvl_error, _("Error: No configuration found in config file '%s'\n"), config_file);
}
while (li) {
g_free(li->data);
@@ -212,7 +212,7 @@ int main_real(int argc, char * const* argv)
}
g_list_free(list);
if (! (config && config_get_attr(config, attr_navit, &navit, NULL))) {
- dbg(0, "%s", _("Internal initialization failed, exiting. Check previous error messages.\n"));
+ dbg(lvl_error, "%s", _("Internal initialization failed, exiting. Check previous error messages.\n"));
exit(5);
}
conf.type=attr_config;