[U-Boot] putc
Simon Glass
sjg at chromium.org
Wed Oct 29 20:03:41 CET 2014
Hi Martin,
On 28 October 2014 07:23, Martin Dorwig <dorwig at tetronik.com> wrote:
> Hello,
> after updating u-boot from git v2014.10
> i just noticed that my standalone application outputs garbage using putc.
> after some investigation i found that the gd->jt[XF_putc] is assigned a
> dev->putc pointer in "common/console.c function console_setfile"
>
> the dev->putc is declared in include/stdio_dev.h as
> void (*putc)(struct stdio_dev *dev, const char c);
>
> int include/exports.h this function is declared as
> void putc(const char);
>
> this was introduced with commit id 709ea543b92489e7729d2d7ddd6c9f451e52158c
That's unfortunate. Is the stdio device pointer available in the
standalone application?
Perhaps gd->jt should point to a structure of strongly-typed
functions? Then we would get a build error in this case.
Regards,
Simon
More information about the U-Boot
mailing list