x86/tools/relocs: Mark die() with the printf function attr format
authorBorislav Petkov <bp@suse.de>
Fri, 25 Jun 2021 15:10:16 +0000 (17:10 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Aug 2021 03:58:02 +0000 (05:58 +0200)
commit03dca99e200f4d268f70079cf54e3b1200c9eb9d
tree5702e29034d1b485fbf3817cbdf066225a339c21
parent989ceac799cb28a477304cdc9ee72995191c6378
x86/tools/relocs: Mark die() with the printf function attr format

Mark die() as a function which accepts printf-style arguments so that
the compiler can typecheck them against the supplied format string.

Use the C99 inttypes.h format specifiers as relocs.c gets built for both
32- and 64-bit.

Original version of the patch by Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: http://lkml.kernel.org/r/YNnb6Q4QHtNYC049@zn.tnic
arch/x86/tools/relocs.c
arch/x86/tools/relocs.h