[PATCH v2 0/3] trivial printf patches

Rasmus Villemoes rasmus.villemoes at prevas.dk
Fri May 28 00:20:43 CEST 2021


Apparently, improving the QoI of vsnprintf() is too controversial. So
here are the uncontended parts of that series with Simon's R-bs added.

It's not a huge image reduction:

$ ../linux/scripts/bloat-o-meter lib/vsprintf.o.{0,1}
add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-218 (-218)
Function                                     old     new   delta
printf                                       220     152     -68
vsnprintf_internal                          2124    1974    -150
Total: Before=4878, After=4660, chg -4.47%

but still worth it.

Rasmus Villemoes (3):
  lib/vsprintf.c: implement printf() in terms of vprintf()
  lib/vsprintf.c: remove stale comment
  lib/vsprintf.c: remove unused ip6_addr_string()

 lib/vsprintf.c | 22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)

-- 
2.31.1



More information about the U-Boot mailing list