Re: [PATCH v2] tracing: make ftrace_print_array_seq compute buf_len

From: Steven Rostedt
Date: Wed Apr 29 2015 - 11:36:41 EST


On Wed, 29 Apr 2015 16:18:46 +0100
Alex BennÃe <alex.bennee@xxxxxxxxxx> wrote:

> 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.
>
> Signed-off-by: Alex BennÃe <alex.bennee@xxxxxxxxxx>

Thanks, I'll add a stable tag to this too, and get it out soon.

-- Steve

>
> ---
> v2:
> - more explicit commit message
> - rename len -> count to reduce ambiguity
> ---
> include/linux/ftrace_event.h | 2 +-
> kernel/trace/trace_output.c | 3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/