Signed-off-by: Roland Dreier <rolandd@cisco.com>
+2006-03-28 Roland Dreier <rdreier@cisco.com>
+
+ * src/init.c (load_driver): Print warning if dlopen() of a driver
+ plugin fails.
+
2006-03-22 Dotan Barak <dotanb@mellanox.co.il>
* examples/asyncwatch.c: Print asynchronous event name as well as
struct ibv_driver *driver;
dlhandle = dlopen(so_path, RTLD_NOW);
- if (!dlhandle)
+ if (!dlhandle) {
+ fprintf(stderr, PFX "Warning: couldn't load driver %s: %s\n",
+ so_path, dlerror());
return;
+ }
dlerror();
init_func = dlsym(dlhandle, "openib_driver_init");