mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
c9590ae131
commit
891b0a93e4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue