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/11728/head
							parent
							
								
									5d330bff10
								
							
						
					
					
						commit
						8d9e0a86a6
					
				| 
						 | 
				
			
			@ -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