Skip to content

Commit

Permalink
Pass void* pointers to %p log statements
Browse files Browse the repository at this point in the history
Related to ros2/rosbag2#106

Signed-off-by: Thomas Moulard <tmoulard@amazon.com>
  • Loading branch information
Thomas Moulard committed May 2, 2019
1 parent e1b3898 commit a7ad61c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pluginlib/include/pluginlib/class_loader_imp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ClassLoader<T>::ClassLoader(
/***************************************************************************/
{
RCUTILS_LOG_DEBUG_NAMED("pluginlib.ClassLoader", "Creating ClassLoader, base = %s, address = %p",
base_class.c_str(), this);
base_class.c_str(), static_cast<void*>(this));
try {
ament_index_cpp::get_package_prefix(package_);
} catch (const ament_index_cpp::PackageNotFoundError & exception) {
Expand All @@ -115,7 +115,7 @@ ClassLoader<T>::ClassLoader(
classes_available_ = determineAvailableClasses(plugin_xml_paths_);
RCUTILS_LOG_DEBUG_NAMED("pluginlib.ClassLoader",
"Finished constructring ClassLoader, base = %s, address = %p",
base_class.c_str(), this);
base_class.c_str(), static_cast<void*>(this));
}

template<class T>
Expand All @@ -124,7 +124,7 @@ ClassLoader<T>::~ClassLoader()
{
RCUTILS_LOG_DEBUG_NAMED("pluginlib.ClassLoader",
"Destroying ClassLoader, base = %s, address = %p",
getBaseClassType().c_str(), this);
getBaseClassType().c_str(), static_cast<void*>(this));
}


Expand Down

0 comments on commit a7ad61c

Please sign in to comment.