fixing clang error

This commit is contained in:
Evgeny
2019-10-02 15:29:09 -05:00
parent 8a43ddfc82
commit a8c5e2edce
5 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -251,7 +251,7 @@ void mark_api_callback(
entry->pid = GetPid();
entry->tid = GetTid();
entry->data = {};
entry->name = name;
entry->name = strdup(name);
entry->ptr = NULL;
}
@@ -300,7 +300,7 @@ void hip_api_flush_cb(hip_api_trace_entry_t* entry) {
fprintf(hip_api_file_handle, "%s()\n", oss.str().c_str());
}
} else {
fprintf(hip_api_file_handle, "%s(%s)\n", oss.str().c_str(), entry->name);
fprintf(hip_api_file_handle, "%s(name(%s))\n", oss.str().c_str(), entry->name);
}
fflush(hip_api_file_handle);