Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Rationalize plugin symbol error reporting
[vpp.git]
/
src
/
vat
/
plugin.c
diff --git
a/src/vat/plugin.c
b/src/vat/plugin.c
index
20de8c5
..
b94c4fc
100644
(file)
--- a/
src/vat/plugin.c
+++ b/
src/vat/plugin.c
@@
-40,14
+40,19
@@
load_one_plugin (plugin_main_t * pm, plugin_info_t * pi)
if (handle == 0)
{
clib_warning ("%s", dlerror ());
if (handle == 0)
{
clib_warning ("%s", dlerror ());
- return
-1
;
+ return
0
;
}
pi->handle = handle;
register_handle = dlsym (pi->handle, "vat_plugin_register");
if (register_handle == 0)
}
pi->handle = handle;
register_handle = dlsym (pi->handle, "vat_plugin_register");
if (register_handle == 0)
- return 0;
+ {
+ clib_warning ("%s: symbol vat_plugin_register not found", pi->name);
+ dlclose (handle);
+ return 0;
+ }
+
fp = register_handle;
fp = register_handle;