diff options
Diffstat (limited to 'navit/speech.c')
-rw-r--r-- | navit/speech.c | 16 |
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); } |