Skip to content

Commit 221c61c

Browse files
committed
Windows workaround
1 parent df73b49 commit 221c61c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ inline void init(const std::string &name) { get_logger(name.c_str()); }
3333
// use log level as a first parameter
3434
// available levels: QUIET, ERR, WARN, INFO, DEBUG
3535
#define UR_LOG(level, ...) URLOG_(::logger::get_logger(), level, __VA_ARGS__)
36-
#define UR_LOG_LEGACY(level, ...) URLOG_L_(::logger::get_logger(), level, __VA_ARGS__)
3736

3837
// TODO: consider removing UR_LOG_L and maybe UR_LOG_LEGACY macros, using UR_LOG
3938
// instead
40-
#define UR_LOG_L(...) URLOG_(__VA_ARGS__)
39+
#define UR_LOG_LEGACY(level, ...) \
40+
URLOG_L_(::logger::get_logger(), level, __VA_ARGS__)
41+
#define UR_LOG_L(logger, level, ...) URLOG_(logger, level, __VA_ARGS__)
4142

4243
inline void setLevel(ur_logger_level_t level) { get_logger().setLevel(level); }
4344

0 commit comments

Comments
 (0)