diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-03-21 16:40:50 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2025-03-28 13:37:11 +0100 |
commit | 7bf819aa992faee980610e9021aec0c38aac53be (patch) | |
tree | b79be465308cf33a8407977b8d80a7b083a0cc3b /lib | |
parent | 196a062641fe68d9bfe0ad36b6cd7628c99ad22c (diff) |
vsnprintf: Mark binary printing functions with __printf() attribute
Binary printf() functions are using printf() type of format, and compiler
is not happy about them as is:
lib/vsprintf.c:3130:47: error: function ‘vbin_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
lib/vsprintf.c:3298:33: error: function ‘bstr_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
Fix the compilation errors by adding __printf() attribute.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250321144822.324050-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions