Codechange: replace puts with fmt::print

This commit is contained in:
Rubidium
2023-05-21 08:21:40 +02:00
committed by rubidium42
parent 275ebf4509
commit 411379f587
4 changed files with 8 additions and 9 deletions

View File

@@ -138,8 +138,7 @@ void DebugPrint(const char *level, const std::string &message)
fflush(f);
#endif
} else {
std::string msg = fmt::format("{}dbg: [{}] {}\n", GetLogPrefix(), level, message);
fputs(msg.c_str(), stderr);
fmt::print(stderr, "{}dbg: [{}] {}\n", GetLogPrefix(), level, message);
if (_debug_remote_console.load()) {
/* Only add to the queue when there is at least one consumer of the data. */