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 | 2a6aa9b917249f44e4aa27d88e255f61eb171d6a (patch) | |
tree | 0ad46b248e42f96e93b54874aa3b073ad1273aa1 /navit/config_.c | |
parent | 05edfdebd6b83267121b11538abafe39bff266e7 (diff) | |
download | navit-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/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 7fdb1302d..b33e227ce 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; |