From 41e7be0fa67c18f75d96ada440b9983d0a7f016d Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 11 Dec 2019 19:26:50 -0500
Subject: [PATCH] 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
[ROCm/hip commit: de46a0e2051b6145adae090b03a2497190bed5f5]
---
projects/hip/api/hip/trace_helper.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/projects/hip/api/hip/trace_helper.h b/projects/hip/api/hip/trace_helper.h
index 7888237160..3f87fbe1b3 100644
--- a/projects/hip/api/hip/trace_helper.h
+++ b/projects/hip/api/hip/trace_helper.h
@@ -125,6 +125,11 @@ inline std::string ToString(T v) {
return ss.str();
};
+template <>
+inline std::string ToString(const char* v) {
+ return ToHexString(v);
+};
+
template <>
inline std::string ToString(hipFunction_t v) {
std::ostringstream ss;