minimal_printf: Fix high level C functions that print to the console

Ensure the file descriptor stdout is passed to `fputc` when the high
level C functions to print to the console are referenced.
This issue fixed only affected binaries built with the ARM toolchain.
pull/11894/head
Hugues Kamba 2019-10-22 14:07:38 +01:00 committed by adbridge
parent c9590ae131
commit 891b0a93e4
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ int $Sub$$__2printf(const char *format, ...)
{
va_list arguments;
va_start(arguments, format);
int result = mbed_minimal_formatted_string(NULL, LONG_MAX, format, arguments, NULL);
int result = mbed_minimal_formatted_string(NULL, LONG_MAX, format, arguments, stdout);
va_end(arguments);
return result;
@ -70,7 +70,7 @@ int $Sub$$__2vprintf(char *buffer, const char *format, ...)
{
va_list arguments;
va_start(arguments, format);
int result = mbed_minimal_formatted_string(buffer, LONG_MAX, format, arguments, NULL);
int result = mbed_minimal_formatted_string(buffer, LONG_MAX, format, arguments, stdout);
va_end(arguments);
return result;