]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1df294fcb32c2bdf2c84386c7ba89f296e4323b7
tree5d763c3c8fd71a9630b4e86df57653f432a36611
parentc3966d0f36d7985ec488d2151f373189e408e55d
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