]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc/printf: Use goto and reduce indentation
authorDavid Laight <david.laight.linux@gmail.com>
Sun, 8 Mar 2026 11:37:32 +0000 (11:37 +0000)
committerThomas Weißschuh <linux@weissschuh.net>
Fri, 20 Mar 2026 16:46:11 +0000 (17:46 +0100)
commitc5b9173ce9a110618edcb5bd92c8c724b6edf41f
tree0bdbb488817c4ddca1eb9ee3f576c0c5bf8567bc
parentb3d30efd052360c11abe1259a15dfcf2448b37be
tools/nolibc/printf: Use goto and reduce indentation

Upcoming changes will need to use goto to jump to the code that
outputs characters.
Use 'goto do_output' to output a known number of characters.
Use 'goto do_strlen_output' to output a '\0' terminated string.

Removes a level of indentation from the format processing code.

The change is best reviewed using 'git diff -b' after applying it.

Signed-off-by: David Laight <david.laight.linux@gmail.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260308113742.12649-8-david.laight.linux@gmail.com
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/stdio.h