]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/vsprintf: Deduplicate special hex number specifier data
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Nov 2025 15:02:59 +0000 (16:02 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 19 Nov 2025 09:07:52 +0000 (10:07 +0100)
commit376c18f30e226854062ff0a6eebc6af4ea62456b
tree5d6fe9532aa0fa41e563c2aa721d51ef30c856f4
parent372a12bd5df0199aa234eaf8ef31ed7ecd61d40f
lib/vsprintf: Deduplicate special hex number specifier data

Two functions use the same specifier data for the special hex number.
Almost the same as the field width is calculated on the size of the
given type. Due to that, make a compound literal macro in order to
deduplicate the rest.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Link: https://patch.msgid.link/20251113150313.3030700-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
lib/vsprintf.c