diff --git a/include/hicr/backends/pthreads/computeManager.hpp b/include/hicr/backends/pthreads/computeManager.hpp index fa2df226..e4ae4c4b 100644 --- a/include/hicr/backends/pthreads/computeManager.hpp +++ b/include/hicr/backends/pthreads/computeManager.hpp @@ -144,7 +144,7 @@ class ComputeManager : public HiCR::ComputeManager auto p = dynamic_cast(processingUnit.get()); // If the processing unit is not recognized, throw error. We can use the processing unit's type (string) now. - if (p == nullptr) HICR_THROW_LOGIC("This compute manager cannot handle processing units of type '%s'", processingUnit->getType()); + if (p == nullptr) HICR_THROW_LOGIC("This compute manager cannot handle processing units of type '%s'", processingUnit->getType().c_str()); // Returning converted pointer return p;