Re: [PATCH 25/32] tools/nolibc: allow different write callbacks in printf

2025-03-04 Thread Thomas Weißschuh
On Tue, Mar 04, 2025 at 08:59:23AM +0100, Willy Tarreau wrote: > On Tue, Mar 04, 2025 at 08:10:55AM +0100, Thomas Weißschuh wrote: > > Decouple the formatting logic from the writing logic to later enable > > writing straight to a buffer in sprintf(). > > > > Signed-off-by: Thomas Weißschuh > > --

Re: [PATCH 25/32] tools/nolibc: allow different write callbacks in printf

2025-03-03 Thread Willy Tarreau
On Tue, Mar 04, 2025 at 08:10:55AM +0100, Thomas Weißschuh wrote: > Decouple the formatting logic from the writing logic to later enable > writing straight to a buffer in sprintf(). > > Signed-off-by: Thomas Weißschuh > --- > tools/include/nolibc/stdio.h | 21 + > 1 file chan

[PATCH 25/32] tools/nolibc: allow different write callbacks in printf

2025-03-03 Thread Thomas Weißschuh
Decouple the formatting logic from the writing logic to later enable writing straight to a buffer in sprintf(). Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/stdio.h | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/tools/include/nolibc/stdio.h