3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-08-08 15:12:21 +00:00

log: cleanup

This commit is contained in:
Miodrag Milanovic 2026-08-07 17:20:25 +02:00
parent bf60ba30cd
commit 8410615988

View file

@ -127,11 +127,11 @@ static inline bool ys_debug(int n = 0) { if (log_force_debug) return true; log_d
static inline bool ys_debug(int = 0) { return false; }
#endif
void log_formatted_string(std::string_view format, std::string str, LogSeverity severity = LogSeverity::LOG_INFO);
void log_formatted_string(std::string_view format, std::string str, LogSeverity severity);
template <typename... Args>
inline void log(FmtString<TypeIdentity<Args>...> fmt, const Args &... args)
{
log_formatted_string(fmt.format_string(), fmt.format(args...));
log_formatted_string(fmt.format_string(), fmt.format(args...), LogSeverity::LOG_INFO);
}
template <typename... Args>