summaryrefslogtreecommitdiff
path: root/navit/osd.c
diff options
context:
space:
mode:
authorSebastian Leske <sebastian.leske@sleske.name>2015-09-16 19:04:45 +0200
committerSebastian Leske <sebastian.leske@sleske.name>2015-09-17 00:22:40 +0200
commitd677c4563ddf20878cfcb8e8d83b5a0f1a457908 (patch)
tree0b96af5304ab569d1191f254a3468d3e6f840dd6 /navit/osd.c
parent8dd0ad167b969eb479dc58f7ec50259999cc42a0 (diff)
downloadnavit-d677c4563ddf20878cfcb8e8d83b5a0f1a457908.tar.gz
Better error msg for wrong OSD entries in navit.xmlR6274
Do not report error for an attempt to load an already loaded plugin; this is normal for libosd_core. Report error for trying to create an OSD with an invalid type. Remove invalid OSD entries from navit_shipped.xml
Diffstat (limited to 'navit/osd.c')
-rw-r--r--navit/osd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/osd.c b/navit/osd.c
index dd87392fb..921b2d8ab 100644
--- a/navit/osd.c
+++ b/navit/osd.c
@@ -53,8 +53,10 @@ osd_new(struct attr *parent, struct attr **attrs)
if (! type)
return NULL;
new=plugin_get_osd_type(type->u.str);
- if (! new)
+ if (! new) {
+ dbg(lvl_error, "invalid OSD type '%s'\n", type->u.str);
return NULL;
+ }
o=g_new0(struct osd, 1);
o->attrs=attr_list_dup(attrs);
cbl.type=attr_callback_list;