]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Fix regression in printk_formats file
authorSteven Rostedt <srostedt@redhat.com>
Thu, 9 Jun 2011 12:40:59 +0000 (08:40 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 9 Jun 2011 12:42:15 +0000 (08:42 -0400)
commita42efc998b989df8b11a96ecb3372482eed132a7
tree022c475cc132e64f01c0765d2d965c0aa5df2286
parente21d2bcdcf310cf7e6266fa0b7b7da05d63aa2cc
tracing: Fix regression in printk_formats file

The fix to fix the printk_formats of modules broke the
printk_formats of trace_printks in the kernel.

The update of what to show via the seq_file was only updated
if the passed in fmt was NULL, which happens only on the first
iteration. The result was showing the first format every time
instead of iterating through the available formats.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_printk.c