tracing: Add printf attribute to log function
authorTom Rix <trix@redhat.com>
Mon, 21 Dec 2020 16:27:15 +0000 (08:27 -0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 2 Feb 2021 22:02:05 +0000 (17:02 -0500)
commitbd0c9706430240e3b7e9323361bb25066540d2a8
tree5d763c3c8fd71a9630b4e86df57653f432a36611
parentc8b186a8d54d7e12d28e9f9686cb00ff18fc2ab2
tracing: Add printf attribute to log function

Attributing the function allows the compiler to more thoroughly
check the use of the function with -Wformat and similar flags.

Link: https://lkml.kernel.org/r/20201221162715.3757291-1-trix@redhat.com
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/trace.h