]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tracing: Use __printf markup to silence compiler
authorMathieu Malaterre <malat@debian.org>
Thu, 8 Mar 2018 20:58:43 +0000 (21:58 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 3 Jul 2018 22:32:04 +0000 (18:32 -0400)
commit26b68dd2f48fe7699a89f0cfbb9f4a650dc1c837
tree53ed16172da01547d9a260a92c7f88c279c2711d
parentf26808ba7227a921e0e8549c7d3c52332b920085
tracing: Use __printf markup to silence compiler

Silence warnings (triggered at W=1) by adding relevant __printf attributes.

  CC      kernel/trace/trace.o
kernel/trace/trace.c: In function ‘__trace_array_vprintk’:
kernel/trace/trace.c:2979:2: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
  len = vscnprintf(tbuffer, TRACE_BUF_SIZE, fmt, args);
  ^~~
  AR      kernel/trace/built-in.o

Link: http://lkml.kernel.org/r/20180308205843.27447-1-malat@debian.org
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c