OSDN Git Service

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)
commitac01ce1410fc2c7b5f3af5e9c972e6a412eee54f
tree9e18395d231d04ca7e8832f87874be1aed9e8f00
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22
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