diff options
author | Sebastian Leske <sebastian.leske@sleske.name> | 2015-09-16 19:04:45 +0200 |
---|---|---|
committer | Sebastian Leske <sebastian.leske@sleske.name> | 2015-09-17 00:22:40 +0200 |
commit | d677c4563ddf20878cfcb8e8d83b5a0f1a457908 (patch) | |
tree | 0b96af5304ab569d1191f254a3468d3e6f840dd6 /navit/plugin.c | |
parent | 8dd0ad167b969eb479dc58f7ec50259999cc42a0 (diff) | |
download | navit-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/plugin.c')
-rw-r--r-- | navit/plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/plugin.c b/navit/plugin.c index 0f3e89583..2edf9ed74 100644 --- a/navit/plugin.c +++ b/navit/plugin.c @@ -170,8 +170,8 @@ plugin_load(struct plugin *pl) GModule *mod; if (pl->mod) { - dbg(lvl_error,"can't load '%s', already loaded\n", pl->name); - return 0; + dbg(lvl_debug,"'%s' already loaded, returning\n", pl->name); + return 1; } mod=g_module_open(pl->name, G_MODULE_BIND_LOCAL | (pl->lazy ? G_MODULE_BIND_LAZY : 0)); if (! mod) { |