lkml.org 
[lkml]   [2015]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2] tracing: make ftrace_print_array_seq compute buf_len
Date

Steven Rostedt <rostedt@goodmis.org> writes:

> On Wed, 29 Apr 2015 16:18:46 +0100
> Alex Bennée <alex.bennee@linaro.org> 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@linaro.org>
>
> Thanks, I'll add a stable tag to this too, and get it out soon.

I take it you'll pick up Dave's reviewed-by?

As for CC'ing stable I wouldn't worry too much as nothing in the kernel
uses __print_array yet (unless you count the example). But it is a
fairly trivial patch so if you as the maintainer is happy I'm happy ;-)

>
> -- 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(-)
>>

--
Alex Bennée


\
 
 \ /
  Last update: 2015-04-29 18:21    [W:0.053 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site