Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I97d5fe93e1448778fc020fd6fbd5a47a3f5e7235
void* sharedObjectHandle = dlopen(sharedObjectPath.c_str(), RTLD_LAZY | RTLD_GLOBAL);
if (!sharedObjectHandle)
{
- throw RuntimeException(boost::str(boost::format("OpenHandle error: %1") % GetDlError()));
+ throw RuntimeException(boost::str(boost::format("OpenHandle error: %1%") % GetDlError()));
}
return sharedObjectHandle;
auto entryPoint = reinterpret_cast<EntryPointType>(dlsym(const_cast<void*>(sharedObjectHandle), symbolName));
if (!entryPoint)
{
- throw RuntimeException(boost::str(boost::format("GetEntryPoint error: %1") % GetDlError()));
+ throw RuntimeException(boost::str(boost::format("GetEntryPoint error: %1%") % GetDlError()));
}
return entryPoint;