P4 to Git Change 2044309 by cpaquot@cpaquot-ocl-lc-lnx on 2019/12/11 19:19:15

SWDEV-145570 - [hip] special case const char* for logs in case it's a null pointer.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/trace_helper.h#3 edit
This commit is contained in:
foreman
2019-12-11 19:26:50 -05:00
parent eaef4a97b5
commit de46a0e205
+5
View File
@@ -125,6 +125,11 @@ inline std::string ToString(T v) {
return ss.str();
};
template <>
inline std::string ToString(const char* v) {
return ToHexString<const void*>(v);
};
template <>
inline std::string ToString(hipFunction_t v) {
std::ostringstream ss;