Sfoglia il codice sorgente

Provide information as to why a plugin refused to load

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1438 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 18 anni fa
parent
commit
2551a393c4
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      lcr/lcr_ifact.c

+ 2 - 0
lcr/lcr_ifact.c

@@ -373,6 +373,8 @@ static int interface_find_and_load (
 		}
 		}
 		dl_handle = dlopen (dl_name, RTLD_LAZY);
 		dl_handle = dlopen (dl_name, RTLD_LAZY);
 		if (dl_handle == NULL) {
 		if (dl_handle == NULL) {
+			fprintf(stderr, "%s: open failed: %s\n",
+				dl_name, dlerror());
 			continue;
 			continue;
 		}
 		}
 		instance = lcr_comp_find (iface_name, version, iface_number);
 		instance = lcr_comp_find (iface_name, version, iface_number);