Skip to content

Commit 43d404d

Browse files
committed
rename setCallbackSinkFunction to setSinkCallback
1 parent 31d4486 commit 43d404d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source/common/logger/ur_logger_details.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Logger {
116116
this->sink = std::move(legacySink);
117117
}
118118

119-
void setCallbackSinkFunction(ur_logger_output_callback_t cb,
119+
void setSinkCallback(ur_logger_output_callback_t cb,
120120
void *pUserData) {
121121
logger::Sink *rawBasePtr = this->sink.release();
122122
logger::CallbackSink *derivedPtr =

source/loader/ur_lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ urLoaderConfigSetLoggerCallback(ur_logger_output_callback_t pfnLoggerCallback,
222222
return UR_RESULT_ERROR_INVALID_NULL_POINTER;
223223
}
224224

225-
logger::get_logger().setCallbackSinkFunction(pfnLoggerCallback, pUserData);
225+
logger::get_logger().setSinkCallback(pfnLoggerCallback, pUserData);
226226

227227
return UR_RESULT_SUCCESS;
228228
}

test/unit/logger/logger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void printLoggerMessages(const char *msg, [[maybe_unused]] void *userData) {
216216

217217
TEST_F(LoggerWithCallbackSink, PrintLoggerWithCallback) {
218218
// Pass a callback function to the logger which will receive any messages sent to the logger
219-
logger->setCallbackSinkFunction(printLoggerMessages, nullptr);
219+
logger->setSinkCallback(printLoggerMessages, nullptr);
220220

221221
logger->error("Test message: {}", "success");
222222
}

0 commit comments

Comments
 (0)