]> git.dujemihanovic.xyz Git - u-boot.git/commit
tiny-printf: Correct return values
authorSimon Glass <sjg@chromium.org>
Fri, 20 Sep 2024 07:24:29 +0000 (09:24 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 3 Oct 2024 17:52:16 +0000 (11:52 -0600)
commite2d96ac9ee9f81c8f72435bff55f924d27ad92d1
treea23cadbf9a98f9a2659296e00188e39acabff964
parenteb08abc2936cb545ecc814214d499136e68c2658
tiny-printf: Correct return values

The sprintf() etc. functions are supposed to return the length of the
string written, but do not. Fix this by checking the amount of buffer
space used.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/tiny-printf.c