]> Git Repo - u-boot.git/commit
sandbox: replace putchar(ch) by fputc(ch, stdout)
authorHeinrich Schuchardt <[email protected]>
Sat, 20 Nov 2021 12:28:33 +0000 (13:28 +0100)
committerSimon Glass <[email protected]>
Thu, 2 Dec 2021 16:15:43 +0000 (09:15 -0700)
commit34bee10e00bc77bbe4287abe15a16f3048085424
treeaf0a2fe24c63238f3ee29e183a238d9156568b18
parentfe67ba7418a1d31341a766b3f01833803dcba4f5
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
arch/sandbox/cpu/os.c
This page took 0.034232 seconds and 4 git commands to generate.