LibC: Implement closelog and make syslog print to stddbg

This commit is contained in:
2024-12-03 01:45:54 +02:00
parent 415b20f884
commit fbcf10c86d
2 changed files with 23 additions and 4 deletions

View File

@@ -580,6 +580,7 @@ extern "C" int printf_impl(const char* format, va_list arguments, int (*putc_fun
case 'm':
{
// NOTE: this is a glibc extension
// NOTE: syslog() requires %m to be handled
if (options.alternate_form)
string = strerrorname_np(errno);
else