Merge pull request #5956 from YosysHQ/log_compat

Add one more  compatibility logger used in patches for some time
This commit is contained in:
Miodrag Milanović 2026-06-12 13:13:54 +00:00 committed by GitHub
commit a423226ec9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -83,4 +83,13 @@ void log(const char *format, ...)
log_formatted(formatted);
}
void log_compat(const char *format, ...)
{
va_list ap;
va_start(ap, format);
std::string formatted = vstringf(format, ap);
va_end(ap);
log_formatted(formatted);
}
YOSYS_NAMESPACE_END