Removed unnecessary argument from log manager commands because it is not used and it is always NULL.
This commit is contained in:
@ -81,14 +81,14 @@ MODULES *mod;
|
||||
sprintf(fname, "%s/modules/lib%s.so", home, module);
|
||||
if (access(fname, F_OK) == -1)
|
||||
{
|
||||
skygw_log_write(NULL, LOGFILE_ERROR,
|
||||
skygw_log_write( LOGFILE_ERROR,
|
||||
"Unable to find library for module: %s\n", module);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if ((dlhandle = dlopen(fname, RTLD_NOW|RTLD_LOCAL)) == NULL)
|
||||
{
|
||||
skygw_log_write(NULL, LOGFILE_ERROR,
|
||||
skygw_log_write( LOGFILE_ERROR,
|
||||
"Unable to load library for module: %s, %s\n", module, dlerror());
|
||||
return NULL;
|
||||
}
|
||||
@ -96,7 +96,6 @@ MODULES *mod;
|
||||
if ((sym = dlsym(dlhandle, "version")) == NULL)
|
||||
{
|
||||
skygw_log_write_flush(
|
||||
NULL,
|
||||
LOGFILE_ERROR,
|
||||
"Version interface not supported by module: %s, %s\n",
|
||||
module,
|
||||
@ -119,7 +118,6 @@ MODULES *mod;
|
||||
if ((sym = dlsym(dlhandle, "GetModuleObject")) == NULL)
|
||||
{
|
||||
skygw_log_write_flush(
|
||||
NULL,
|
||||
LOGFILE_ERROR,
|
||||
"Expected entry point interface missing from module: "
|
||||
"%s, %s\n",
|
||||
@ -131,8 +129,7 @@ MODULES *mod;
|
||||
ep = sym;
|
||||
modobj = ep();
|
||||
|
||||
skygw_log_write_flush(NULL,
|
||||
LOGFILE_MESSAGE,
|
||||
skygw_log_write_flush(LOGFILE_MESSAGE,
|
||||
"Loaded module %s: %s\n",
|
||||
module,
|
||||
version);
|
||||
|
Reference in New Issue
Block a user