Skip to content

Commit a312a82

Browse files
committed
Temporary asserts for verification of changes
1 parent 1187d8b commit a312a82

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

unified-runtime/source/adapters/native_cpu/common.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ extern thread_local char ErrorMessage[MaxMessageSize];
2121

2222
#define DIE_NO_IMPLEMENTATION \
2323
do { \
24-
URLOG(ERR, "Not Implemented : {} - File : {} / Line : {}", __FUNCTION__) \
24+
URLOG(ERR, "Not Implemented : {}", __FUNCTION__) \
2525
\
2626
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; \
2727
} while (false)
2828

2929
#define CONTINUE_NO_IMPLEMENTATION \
3030
do { \
31-
URLOG(WARN, "Not Implemented : {} - File : {} / Line : {}", __FUNCTION__) \
31+
URLOG(WARN, "Not Implemented : {}", __FUNCTION__) \
3232
return UR_RESULT_SUCCESS; \
3333
} while (false)
3434

3535
#define CASE_UR_UNSUPPORTED(not_supported) \
3636
case not_supported: \
37-
URLOG(ERR, "Unsupported UR case : {} in {}:{}({})", #not_supported, \
37+
URLOG(ERR, "Unsupported UR case : {} in {}", #not_supported, \
3838
__FUNCTION__) \
3939
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
4040

unified-runtime/source/common/logger/ur_sinks.hpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,18 @@ class Sink {
100100
if (*(++fmt) == '{') {
101101
buffer << *fmt++;
102102
} else {
103-
std::cerr << error_prefix
104-
<< "No arguments provided and braces not escaped!"
105-
<< std::endl;
103+
// std::cerr << error_prefix
104+
// << "No arguments provided and braces not escaped!"
105+
// << std::endl;
106+
assert(false & "No arguments provided and braces not escaped!");
106107
}
107108
} else if (*fmt == '}') {
108109
if (*(++fmt) == '}') {
109110
buffer << *fmt++;
110111
} else {
111-
std::cerr << error_prefix << "Closing curly brace not escaped!"
112-
<< std::endl;
112+
// std::cerr << error_prefix << "Closing curly brace not escaped!"
113+
// << std::endl;
114+
assert(false & "Closing curly brace not escaped!");
113115
}
114116
}
115117
}

0 commit comments

Comments
 (0)