Skip to contentSkip to conversation

PM: tools: sleepgraph: fix a syntax error

PATCH New Moody Liu 1 participant 1 message Nov 6, 2023 PM-graph utility

lore
Share & tools
lore

Moody Liu

author
#0 lore raw

PATCH 1/1 PM: tools: sleepgraph: fix a syntax error

the elif statement has an extra close bracket ')'

Fixes 34ea427e01ea ("PM: tools: sleepgraph: Recognize "CPU killed" messages")
---
 tools/power/pm-graph/sleepgraph.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/pm-graph/sleepgraph.py +1 -1
index 4a356a706785..40ad221e8881 100755
@@ -4151,7 +4151,7 @@ def parseKernelLog(data):
 			elif(re.match('Enabling non-boot CPUs .*', msg)):
 				# start of first cpu resume
 				cpu_start = ktime
-			elif(re.match('smpboot: CPU (?P<cpu>[0-9]*) is now offline', msg)) \
+			elif(re.match('smpboot: CPU (?P<cpu>[0-9]*) is now offline', msg) \
 				or re.match('psci: CPU(?P<cpu>[0-9]*) killed.*', msg)):
 				# end of a cpu suspend, start of the next
 				m = re.match('smpboot: CPU (?P<cpu>[0-9]*) is now offline', msg)
Signature · 1 line
2.42.0