]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Make ftrace_print_array_seq compute buf_len
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 29 Apr 2015 15:18:46 +0000 (16:18 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 7 May 2015 03:03:23 +0000 (23:03 -0400)
commit59f02b11625d9e102639ba9f0fc19431d2a2d56f
tree9e18395d231d04ca7e8832f87874be1aed9e8f00
parentcbecea48e1bc97dfc3f239ef42ed5094663b5822
tracing: Make ftrace_print_array_seq compute buf_len

The only caller to this function (__print_array) was getting it wrong by
passing the array length instead of buffer length. As the element size
was already being passed for other reasons it seems reasonable to push
the calculation of buffer length into the function.

Link: http://lkml.kernel.org/r/1430320727-14582-1-git-send-email-alex.bennee@linaro.org
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
kernel/trace/trace_output.c