Skip to content

Commit 407c459

Browse files
committed
Merge branch 'urlog' of github.com:mateuszpn/llvm into urlog
2 parents a312a82 + 03b1b1e commit 407c459

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ extern thread_local char ErrorMessage[MaxMessageSize];
2222
#define DIE_NO_IMPLEMENTATION \
2323
do { \
2424
URLOG(ERR, "Not Implemented : {}", __FUNCTION__) \
25-
\
2625
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE; \
2726
} while (false)
2827

@@ -34,8 +33,7 @@ extern thread_local char ErrorMessage[MaxMessageSize];
3433

3534
#define CASE_UR_UNSUPPORTED(not_supported) \
3635
case not_supported: \
37-
URLOG(ERR, "Unsupported UR case : {} in {}", #not_supported, \
38-
__FUNCTION__) \
36+
URLOG(ERR, "Unsupported UR case : {} in {}", #not_supported, __FUNCTION__) \
3937
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
4038

4139
// Todo: replace this with a common helper once it is available

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "ur_filesystem_resolved.hpp"
1616
#include "ur_level.hpp"
1717
#include "ur_print.hpp"
18+
#include <assert.h>
1819

1920
namespace logger {
2021

@@ -100,18 +101,18 @@ class Sink {
100101
if (*(++fmt) == '{') {
101102
buffer << *fmt++;
102103
} else {
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!");
104+
// std::cerr << error_prefix
105+
// << "No arguments provided and braces not escaped!"
106+
// << std::endl;
107+
assert(false && "No arguments provided and braces not escaped!");
107108
}
108109
} else if (*fmt == '}') {
109110
if (*(++fmt) == '}') {
110111
buffer << *fmt++;
111112
} else {
112-
// std::cerr << error_prefix << "Closing curly brace not escaped!"
113-
// << std::endl;
114-
assert(false & "Closing curly brace not escaped!");
113+
// std::cerr << error_prefix << "Closing curly brace not escaped!"
114+
// << std::endl;
115+
assert(false && "Closing curly brace not escaped!");
115116
}
116117
}
117118
}

0 commit comments

Comments
 (0)