]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
printf: convert test_hashed into macro
authorTamir Duberstein <tamird@kernel.org>
Wed, 21 Jan 2026 16:10:08 +0000 (11:10 -0500)
committerPetr Mladek <pmladek@suse.com>
Wed, 28 Jan 2026 09:19:40 +0000 (10:19 +0100)
commit9bfa52dac27a20b43bcb73e56dc45aba6b9aaff1
tree4f1c767df43cc96b8a6ddf0fef99c7e13a2891b2
parentbdfcca65e7a681f7511a5c15501a01dd855f6d23
printf: convert test_hashed into macro

This allows the compiler to check the arguments against the __printf()
attribute on __test(). This produces better diagnostics when incorrect
inputs are passed.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512061600.89CKQ3ag-lkp@intel.com/
Signed-off-by: Tamir Duberstein <tamird@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260121-printf-kunit-printf-attr-v3-1-4144f337ec8b@kernel.org
Signed-off-by: Petr Mladek <pmladek@suse.com>
lib/tests/printf_kunit.c