@@ -68,7 +68,7 @@ struct RefCountContext {
6868 ptr, RefRuntimeInfo{1 , std::type_index (typeid (handle)),
6969 getCurrentBacktrace ()});
7070 } else {
71- getContext ()->logger .log (UR_LOGGER_LEVEL_ERROR, SHORT_FILE ,
71+ getContext ()->logger .log (UR_LOGGER_LEVEL_ERROR, __FILE__ ,
7272 UR_STR_ (__LINE__), " Handle {} already exists" ,
7373 ptr);
7474 return ;
@@ -77,7 +77,7 @@ struct RefCountContext {
7777 case REFCOUNT_INCREASE:
7878 if (it == counts.end ()) {
7979 getContext ()->logger .log (
80- UR_LOGGER_LEVEL_ERROR, SHORT_FILE , UR_STR_ (__LINE__),
80+ UR_LOGGER_LEVEL_ERROR, __FILE__ , UR_STR_ (__LINE__),
8181 " Attempting to retain nonexistent handle {}" , ptr);
8282 return ;
8383 } else {
@@ -95,16 +95,15 @@ struct RefCountContext {
9595
9696 if (it->second .refCount < 0 ) {
9797 getContext ()->logger .log (
98- UR_LOGGER_LEVEL_ERROR, SHORT_FILE , UR_STR_ (__LINE__),
98+ UR_LOGGER_LEVEL_ERROR, __FILE__ , UR_STR_ (__LINE__),
9999 " Attempting to release nonexistent handle {}" , ptr);
100100 } else if (it->second .refCount == 0 && isAdapterHandle) {
101101 adapterCount--;
102102 }
103103 break ;
104104 }
105105
106- getContext ()->logger .log (UR_LOGGER_LEVEL_DEBUG, SHORT_FILE,
107- UR_STR_ (__LINE__),
106+ getContext ()->logger .log (UR_LOGGER_LEVEL_DEBUG, __FILE__, UR_STR_ (__LINE__),
108107 " Reference count for handle {} changed to {}" , ptr,
109108 it->second .refCount );
110109
@@ -114,7 +113,7 @@ struct RefCountContext {
114113
115114 // No more active adapters, so any references still held are leaked
116115 if (adapterCount == 0 ) {
117- logInvalidReferences (SHORT_FILE , UR_STR_ (__LINE__));
116+ logInvalidReferences (__FILE__ , UR_STR_ (__LINE__));
118117 counts.clear ();
119118 }
120119 }
@@ -175,10 +174,10 @@ struct RefCountContext {
175174} // namespace ur_validation_layer
176175
177176#define URLOG_CTX_INVALID_REFERENCE (ptr ) \
178- getContext ()->refCountContext->logInvalidReference(SHORT_FILE, \
177+ getContext ()->refCountContext->logInvalidReference(__FILE__, \
179178 UR_STR_ (__LINE__), ptr);
180179#define URLOG_CTX_INVALID_REFERENCES () \
181- getContext ()->refCountContext->logInvalidReferences(SHORT_FILE, \
180+ getContext ()->refCountContext->logInvalidReferences(__FILE__, \
182181 UR_STR_ (__LINE__));
183182
184183#endif /* UR_LEAK_CHECK_H */
0 commit comments