mbox series

[v2,0/3] trivial printf patches

Message ID 20210527222046.1276246-1-rasmus.villemoes@prevas.dk
Headers show
Series trivial printf patches | expand

Message

Rasmus Villemoes May 27, 2021, 10:20 p.m. UTC
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(-)