From: Jose Quaresma Date: Mon, 10 Jul 2023 22:24:19 +0000 (+0000) Subject: pybootchartgui: fix overlapping argument in render_processes_chart X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~380 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81389ccdf22d3ea845ae8d894a0e4e0cdf589f2a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git pybootchartgui: fix overlapping argument in render_processes_chart There is another variable named 'w' on the function which is redefined. The full width is needed in the function so rename it as this must be unique. Signed-off-by: Jose Quaresma Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index 10f6783d38c..e2f9c5dc6c8 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py @@ -620,8 +620,8 @@ def render_charts(ctx, options, clip, trace, curr_y, w, h, sec_w): return curr_y -def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w): - chart_rect = [off_x, curr_y+header_h, w, h - curr_y - 1 * off_y - header_h ] +def render_processes_chart(ctx, options, trace, curr_y, width, h, sec_w): + chart_rect = [off_x, curr_y+header_h, width, h - curr_y - 1 * off_y - header_h ] draw_legend_box (ctx, "Configure", \ TASK_COLOR_CONFIGURE, off_x , curr_y + 45, leg_s)