commit | 614d13462daef9bf6ac735744b5835a18cbfd19c | [log] [tgz] |
---|---|---|
author | Linus Torvalds <torvalds@linux-foundation.org> | Thu Dec 19 10:55:56 2024 -0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Mon Dec 23 11:18:35 2024 -0800 |
tree | 655ba6e092ccc9a6b5b09f18010d56979e2516fc | |
parent | 312f48b2e27f0f8ede4260e024352fdad225d1c5 [diff] |
vsprintf: deal with format specifiers with a lookup table We did the flags as an array earlier, they had simpler rules. The final format specifiers are a bit more complex since they have more fields to deal with, and we want to handle the length modifiers at the same time. But like the flags, we're better off just making it a data-driven table rather than some case statement. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>