mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
sandbox: replace putchar(ch) by fputc(ch, stdout)
When compiled with -Og for better debugability u-boot ends up in a stack overflow using gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 GNU Binutils for Ubuntu 2.37 putchar(ch) is defined as a macro which ends up calling U-Boot's putc() implementation instead of the glibc one, which calls os_putc() ... Let's use fputc(ch, stdout) instead as fputc() does not exist in U-Boot. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fe67ba7418
commit
34bee10e00
1 changed files with 1 additions and 1 deletions
|
@ -638,7 +638,7 @@ int os_get_filesize(const char *fname, loff_t *size)
|
|||
|
||||
void os_putc(int ch)
|
||||
{
|
||||
putchar(ch);
|
||||
fputc(ch, stdout);
|
||||
}
|
||||
|
||||
void os_puts(const char *str)
|
||||
|
|
Loading…
Add table
Reference in a new issue