Re: [PATCH 1/7] console: return characters written from console_putc

Sascha Hauer
2026-04-13T12:29:08Z

On Mon, 13 Apr 2026 12:09:36 +0200, Ahmad Fatoum wrote:
> console_putc() prints two characters instead of one when it does
> LF -> CRLF conversion.
>
> As console_putc already has to do the CRLF check, have it return the
> number of printed characters as well to simplify its users.
>
>
> [...]

Applied, thanks!

[1/7] console: return characters written from console_putc
https://git.pengutronix.de/cgit/barebox/commit/?id=1f2f5516f3ec (link may not be stable)
[2/7] stddef: implement scoped_var for use in iterators
https://git.pengutronix.de/cgit/barebox/commit/?id=59b568e3f41d (link may not be stable)
[3/7] console: have for_each_console declare the iterator internally
https://git.pengutronix.de/cgit/barebox/commit/?id=2cd7ffac2800 (link may not be stable)
[4/7] console: make console_puts and friends accept a console_device
https://git.pengutronix.de/cgit/barebox/commit/?id=1c0c83499823 (link may not be stable)
[5/7] console: implement console_putc in terms of console_putbin
https://git.pengutronix.de/cgit/barebox/commit/?id=7d1261885109 (link may not be stable)
[6/7] console: implement console_printf
https://git.pengutronix.de/cgit/barebox/commit/?id=ec7d76d5dee5 (link may not be stable)
[7/7] commands: dmesg: give log_print a console_device parameter
https://git.pengutronix.de/cgit/barebox/commit/?id=ae1bbd2ab824 (link may not be stable)

Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>