summaryrefslogtreecommitdiff
path: root/navit/speech.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/speech.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/speech.c')
-rw-r--r--navit/speech.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/navit/speech.c b/navit/speech.c
index 8b03f3c4b..159203b87 100644
--- a/navit/speech.c
+++ b/navit/speech.c
@@ -41,25 +41,25 @@ speech_new(struct attr *parent, struct attr **attrs)
attr=attr_search(attrs, NULL, attr_type);
if (! attr) {
- dbg(0,"type missing\n");
+ dbg(lvl_error,"type missing\n");
return NULL;
}
- dbg(1,"type='%s'\n", attr->u.str);
+ dbg(lvl_warning,"type='%s'\n", attr->u.str);
speech_new=plugin_get_speech_type(attr->u.str);
- dbg(1,"new=%p\n", speech_new);
+ dbg(lvl_warning,"new=%p\n", speech_new);
if (! speech_new) {
- dbg(0,"wrong type '%s'\n", attr->u.str);
+ dbg(lvl_error,"wrong type '%s'\n", attr->u.str);
return NULL;
}
this_=(struct speech *)navit_object_new(attrs, &speech_func, sizeof(struct speech));
this_->priv=speech_new(&this_->meth, this_->attrs, parent);
- dbg(1, "say=%p\n", this_->meth.say);
- dbg(1,"priv=%p\n", this_->priv);
+ dbg(lvl_warning, "say=%p\n", this_->meth.say);
+ dbg(lvl_warning,"priv=%p\n", this_->priv);
if (! this_->priv) {
speech_destroy(this_);
return NULL;
}
- dbg(1,"return %p\n", this_);
+ dbg(lvl_warning,"return %p\n", this_);
return this_;
}
@@ -75,7 +75,7 @@ speech_destroy(struct speech *this_)
int
speech_say(struct speech *this_, const char *text)
{
- dbg(1, "this_=%p text='%s' calling %p\n", this_, text, this_->meth.say);
+ dbg(lvl_warning, "this_=%p text='%s' calling %p\n", this_, text, this_->meth.say);
return (this_->meth.say)(this_->priv, text);
}