tracing_bprintk: Don't increment @pos in t_start()
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 24 Jun 2009 01:52:58 +0000 (09:52 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 24 Jun 2009 09:02:50 +0000 (11:02 +0200)
commitc8961ec6da22ea010bf4470a8e0fb3fdad0f11c4
tree799b41a5eae2268010ca2d5b883a6c4fe33a9297
parente1c7e2a6e67fe9db19dd15e71614526a31b5fdb1
tracing_bprintk: Don't increment @pos in t_start()

It's wrong to increment @pos in t_start(), otherwise we'll lose
some entries when reading printk_formats, if the output is larger
than PAGE_SIZE.

Reported-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Reviewed-by: Liming Wang <liming.wang@windriver.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A4186FA.1020106@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_printk.c