]> 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)
commit11c472f4913888862c5ae6d10ef09dbb966529dd
tree9e18395d231d04ca7e8832f87874be1aed9e8f00
parent194b7115c289879d9d371e5ad3e7d18c3489ecbf
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