From 815e6072853180f194ad16206c8e753c7aad59f4 Mon Sep 17 00:00:00 2001 From: "Galantsev, Dmitrii" Date: Fri, 19 Jul 2024 14:03:53 -0500 Subject: [PATCH] Fix missing c_str() introduced in c63ea0e Change-Id: Ife778276aaebd109a413efb3db703de36b730613 Signed-off-by: Galantsev, Dmitrii [ROCm/amdsmi commit: 47c8cd10cf9e25697a753c53602c085d0b6ae9b6] --- projects/amdsmi/third_party/shared_mutex/shared_mutex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/amdsmi/third_party/shared_mutex/shared_mutex.cc b/projects/amdsmi/third_party/shared_mutex/shared_mutex.cc index 59504ee1fc..54b0584887 100755 --- a/projects/amdsmi/third_party/shared_mutex/shared_mutex.cc +++ b/projects/amdsmi/third_party/shared_mutex/shared_mutex.cc @@ -259,7 +259,7 @@ shared_mutex_t shared_mutex_init(const char *name, mode_t mode, bool retried) { std::vector ids = lsof(shared_mutex_filename.c_str()); if (ids.size() == 0) { // no process is using it fprintf(stderr, "%d re-init the mutex %s since no one use it. ret:%d ptr:%p\n", - cur_pid, shared_mutex_filename, ret, reinterpret_cast(addr)->ptr); + cur_pid, shared_mutex_filename.c_str(), ret, reinterpret_cast(addr)->ptr); memset(mutex_ptr, 0, sizeof(pthread_mutex_t)); // Set mutex.created == 1 so that it can be initialized latter. mutex.created = 1;