summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d984b2)
raw | patch | inline | side by side (parent: 2d984b2)
author | octo <octo> | |
Tue, 11 Apr 2006 18:41:30 +0000 (18:41 +0000) | ||
committer | octo <octo> | |
Tue, 11 Apr 2006 18:41:30 +0000 (18:41 +0000) |
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index fc79668db24d017b24dca717615568192d73fd24..cbdb9426373a4c0acffc5f914580aae9a63a14d1 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
#include "plugin.h"
#include "network.h"
+#include "utils_debug.h"
typedef struct plugin
{
lt_dlhandle dlh;
void (*reg_handle) (void);
+ DBG ("file = %s", file);
+
lt_dlinit ();
lt_dlerror (); /* clear errors */
if ((dlh = lt_dlopen (file)) == NULL)
+ {
+ const char *error = lt_dlerror ();
+
+ syslog (LOG_ERR, "lt_dlopen failed: %s", error);
+ DBG ("lt_dlopen failed: %s", error);
return (1);
+ }
if ((reg_handle = lt_dlsym (dlh, "module_register")) == NULL)
{
struct stat statbuf;
struct dirent *de;
+ DBG ("type = %s", type);
+
dir = plugin_get_dir ();
ret = 1;