From 0cff14c9e188ea4bfae4e0af33587600f5ea0ecd Mon Sep 17 00:00:00 2001 From: pghafari Date: Tue, 16 Jan 2024 09:22:17 -0500 Subject: [PATCH] SWDEV-441258 - remove full path for HIP LOG windows Change-Id: Ibad6e9542c0cede38f5a114dcd352356ddedf019 --- rocclr/utils/debug.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rocclr/utils/debug.hpp b/rocclr/utils/debug.hpp index 8254bc3c01..c8c362568c 100644 --- a/rocclr/utils/debug.hpp +++ b/rocclr/utils/debug.hpp @@ -134,7 +134,11 @@ inline void warning(const char* msg) { amd::report_warning(msg); } #define Untested(msg) (void)(0) #endif /*NDEBUG*/ +#ifdef _WIN32 +#define __FILENAME__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__) +#else #define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) +#endif #define Log(level, msg) \ do { \