vsprintf: simplify number handling
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 15 Dec 2024 18:44:15 +0000 (10:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 23 Dec 2024 19:18:35 +0000 (11:18 -0800)
commitbe503db4d0f217bb1bb4b3e3639402d386378d1b
treee2bef50c1a8ed68447c003a3ae8bc1718bf46137
parent4bbf9020becbfd8fc2c3da790855b7042fad455b
vsprintf: simplify number handling

Instead of dealing with all the different special types (size_t,
unsigned char, ptrdiff_t..) just deal with the size of the integer type
and the sign.

This avoids a lot of unnecessary case statements, and the games we play
with the value of the 'SIGN' flags value

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c