summaryrefslogtreecommitdiffstats
path: root/scripts/pybootchartgui
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:05 +0100
commitc40b06921367e62f456145e504e4a6a7ebd0e2ee (patch)
treec19f79ec0635a1fbd1bc966789f271dbaa559720 /scripts/pybootchartgui
parentd1dc34bac4a3feb036500b00a17cf4151d3083fe (diff)
downloadpoky-c40b06921367e62f456145e504e4a6a7ebd0e2ee.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. (From OE-Core rev: 81389ccdf22d3ea845ae8d894a0e4e0cdf589f2a) 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/pybootchartgui')
-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):
620 620
621 return curr_y 621 return curr_y
622 622
623def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w): 623def render_processes_chart(ctx, options, trace, curr_y, width, h, sec_w):
624 chart_rect = [off_x, curr_y+header_h, w, h - curr_y - 1 * off_y - header_h ] 624 chart_rect = [off_x, curr_y+header_h, width, h - curr_y - 1 * off_y - header_h ]
625 625
626 draw_legend_box (ctx, "Configure", \ 626 draw_legend_box (ctx, "Configure", \
627 TASK_COLOR_CONFIGURE, off_x , curr_y + 45, leg_s) 627 TASK_COLOR_CONFIGURE, off_x , curr_y + 45, leg_s)