tracing: Avoid -Wformat-nonliteral warning
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Mon, 29 Oct 2018 22:35:41 +0000 (23:35 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 22 Dec 2018 13:21:06 +0000 (08:21 -0500)
commitcc9f59fb3bc455984404dbab8be16f156a47d023
tree53cfaf53f783876ac9d8321db61233f0ec034706
parent59dd974bc079079c23b5429cba841696fa7fae41
tracing: Avoid -Wformat-nonliteral warning

Building with -Wformat-nonliteral, gcc complains

kernel/trace/trace_output.c: In function ‘seq_print_sym’:
kernel/trace/trace_output.c:356:3: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]
   trace_seq_printf(s, fmt, name);

But seq_print_sym only has a single caller which passes "%s" as fmt, so
we might as well just use that directly. That also paves the way for
further cleanups that will actually make that format string go away
entirely.

Link: http://lkml.kernel.org/r/20181029223542.26175-3-linux@rasmusvillemoes.dk
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_output.c