Просмотр исходного кода

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 лет назад
Родитель
Сommit
2551a393c4
1 измененных файлов с 2 добавлено и 0 удалено
  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);
 		if (dl_handle == NULL) {
+			fprintf(stderr, "%s: open failed: %s\n",
+				dl_name, dlerror());
 			continue;
 		}
 		instance = lcr_comp_find (iface_name, version, iface_number);