LibC: add better error string support

This commit is contained in:
Bananymous
2023-05-10 02:22:31 +03:00
parent 49fe3d0d4f
commit 480d92fce5
3 changed files with 62 additions and 64 deletions

View File

@@ -289,7 +289,7 @@ extern "C" int printf_impl(const char* format, va_list arguments, int (*putc_fun
{
// NOTE: this is a glibc extension
if (options.alternate_form)
string = strerror(errno); // TODO: string = strerrorname_np(errno);
string = strerrorname_np(errno);
else
string = strerror(errno);
format++;