diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-11-22 22:34:19 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-11-22 22:34:19 +0000 |
commit | 0a57b790871b27ea6fd3b1ba97474dddcce7845f (patch) | |
tree | 0ad46b248e42f96e93b54874aa3b073ad1273aa1 /navit/config_.c | |
parent | cffcb036be4aa6097d064c5fb55f3de1a84b23d0 (diff) | |
download | navit-svn-0a57b790871b27ea6fd3b1ba97474dddcce7845f.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/config_.c')
-rw-r--r-- | navit/config_.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/navit/config_.c b/navit/config_.c index 7fdb1302..b33e227c 100644 --- a/navit/config_.c +++ b/navit/config_.c @@ -60,7 +60,7 @@ config_destroy(struct config *this_) static void config_terminate(int sig) { - dbg(0,"terminating\n"); + dbg(lvl_error,"terminating\n"); config_destroy(config); } @@ -142,11 +142,11 @@ struct config * config_new(struct attr *parent, struct attr **attrs) { if (configured) { - dbg(0,"only one config allowed\n"); + dbg(lvl_error,"only one config allowed\n"); return config; } if (parent) { - dbg(0,"no parent in config allowed\n"); + dbg(lvl_error,"no parent in config allowed\n"); return NULL; } if (!config) @@ -156,7 +156,7 @@ config_new(struct attr *parent, struct attr **attrs) config->attrs=attr_generic_add_attr_list(config->attrs, attrs); while (*attrs) { if (!config_set_attr_int(config,*attrs)) { - dbg(0,"failed to set attribute '%s'\n",attr_to_name((*attrs)->type)); + dbg(lvl_error,"failed to set attribute '%s'\n",attr_to_name((*attrs)->type)); config_destroy(config); config=NULL; break; |