summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2023-07-10 22:24:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-14 17:31:02 +0100
commit81389ccdf22d3ea845ae8d894a0e4e0cdf589f2a (patch)
tree4ac15e7ff5eff7b3530688363310f2be243616e9 /scripts
parentb369e9bb0136fecc65f49e0965e5506aa50f489e (diff)
downloadopenembedded-core-81389ccdf22d3ea845ae8d894a0e4e0cdf589f2a.tar.gz
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 <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/draw.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 10f6783d38..e2f9c5dc6c 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)