Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753276AbcC2ILl (ORCPT ); Tue, 29 Mar 2016 04:11:41 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:33158 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751358AbcC2ILh (ORCPT ); Tue, 29 Mar 2016 04:11:37 -0400 MIME-Version: 1.0 In-Reply-To: <1459228096-7142-1-git-send-email-jcliang@chromium.org> References: <1459228096-7142-1-git-send-email-jcliang@chromium.org> Date: Tue, 29 Mar 2016 16:11:35 +0800 X-Google-Sender-Auth: J8Cze-iKbzo_gqWb2mItYg5c_xc Message-ID: Subject: Re: [PATCH] thermal: fix thermal_power_allocator trace event From: Ricky Liang To: Ricky Liang Cc: Javi Merino , Daniel Kurtz , Steven Rostedt , Ingo Molnar , Zhang Rui , Peter Feuerer , Eduardo Valentin , Jean Delvare , Sascha Hauer , open list Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1745 Lines: 34 Please ignore this patch. I found out that I missed out the patch that changed the second parameter of __print_array() to number of elements. On Tue, Mar 29, 2016 at 1:08 PM, Ricky Liang wrote: > Fix the dynamic array length in printing the thermal_power_allocator > trace event. > > CC: Javi Merino > CC: Daniel Kurtz > Signed-off-by: Ricky Liang > --- > include/trace/events/thermal_power_allocator.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/trace/events/thermal_power_allocator.h b/include/trace/events/thermal_power_allocator.h > index 5afae8f..85e5391 100644 > --- a/include/trace/events/thermal_power_allocator.h > +++ b/include/trace/events/thermal_power_allocator.h > @@ -45,10 +45,10 @@ TRACE_EVENT(thermal_power_allocator, > TP_printk("thermal_zone_id=%d req_power={%s} total_req_power=%u granted_power={%s} total_granted_power=%u power_range=%u max_allocatable_power=%u current_temperature=%d delta_temperature=%d", > __entry->tz_id, > __print_array(__get_dynamic_array(req_power), > - __entry->num_actors, 4), > + __get_dynamic_array_len(req_power), 4), > __entry->total_req_power, > __print_array(__get_dynamic_array(granted_power), > - __entry->num_actors, 4), > + __get_dynamic_array_len(granted_power), 4), > __entry->total_granted_power, __entry->power_range, > __entry->max_allocatable_power, __entry->current_temp, > __entry->delta_temp) > -- > 2.1.2 >