h[0] = dlopen ("ltglobmod1.so", RTLD_LAZY);
if (h[0] == NULL)
{
- printf ("%s: cannot open %s: %s",
+ printf ("%s: cannot open %s: %s\n",
__FUNCTION__, "ltglobmod1.so", dlerror ());
exit (EXIT_FAILURE);
}
h[1] = dlopen ("ltglobmod2.so", RTLD_LAZY);
if (h[1] == NULL)
{
- printf ("%s: cannot open %s: %s",
+ printf ("%s: cannot open %s: %s\n",
__FUNCTION__, "ltglobmod2.so", dlerror ());
exit (EXIT_FAILURE);
}
fp = dlsym (h[1], "foo");
if (fp == NULL)
{
- printf ("cannot get address of `foo': %s", dlerror ());
+ printf ("cannot get address of `foo': %s\n", dlerror ());
exit (EXIT_FAILURE);
}