Commit 37a1e947 authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

Removed extra '\n'

parent 206c47ac
......@@ -59,7 +59,7 @@ int main(int argc, char *argv[])
CHECK( 0, fd_rtdisp_init() );
/* Find all extensions which have been compiled along the test */
TRACE_DEBUG(INFO, "Loading from: '%s'\n", BUILD_DIR "/extensions");
TRACE_DEBUG(INFO, "Loading from: '%s'", BUILD_DIR "/extensions");
CHECK( 0, (dir = opendir (BUILD_DIR "/extensions")) == NULL ? 1 : 0 );
pathlen = snprintf(fullname, sizeof(fullname), BUILD_DIR "/extensions/");
......@@ -71,26 +71,26 @@ int main(int argc, char *argv[])
int r;
snprintf(fullname + pathlen, sizeof(fullname) - pathlen, "%s", dp->d_name);
TRACE_DEBUG(INFO, "Extension: '%s'\n", dp->d_name);
TRACE_DEBUG(INFO, "Extension: '%s'", dp->d_name);
/* load */
hdl = dlopen(fullname, RTLD_NOW | RTLD_GLOBAL);
if (!hdl) {
TRACE_DEBUG(INFO, "Unable to load '%s': %s.\n", fullname, dlerror());
TRACE_DEBUG(INFO, "Unable to load '%s': %s.", fullname, dlerror());
}
CHECK( 0, hdl == NULL ? 1 : 0 );
/* resolve entry */
ep = dlsym( hdl, "fd_ext_init" );
if (!ep) {
TRACE_DEBUG(INFO, "No 'fd_ext_init' entry point in '%s': %s.\n", fullname, dlerror());
TRACE_DEBUG(INFO, "No 'fd_ext_init' entry point in '%s': %s.", fullname, dlerror());
}
CHECK( 0, ep == NULL ? 1 : 0 );
/* Done, now unload */
r = dlclose(hdl);
if (r) {
TRACE_DEBUG(INFO, "Unable to dlclose '%s': %s.\n", fullname, dlerror());
TRACE_DEBUG(INFO, "Unable to dlclose '%s': %s.", fullname, dlerror());
}
CHECK( 0, r );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment