mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
remove unneeded strlen when writing eol at end of each line (pass size of eol to write)
This commit is contained in:
@@ -622,7 +622,7 @@ inline void spdlog::pattern_formatter::format(details::log_msg& msg)
|
||||
#if defined(SPDLOG_EOL)
|
||||
msg.formatted << SPDLOG_EOL;
|
||||
#else
|
||||
msg.formatted << details::os::eol();
|
||||
msg.formatted.write(details::os::eol(), details::os::eol_size());
|
||||
#endif
|
||||
}
|
||||
catch(const fmt::FormatError& e)
|
||||
|
Reference in New Issue
Block a user