diff options
author | Tom Cherry <tomcherry@google.com> | 2018-10-25 14:22:15 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2018-10-25 14:22:15 -0700 |
commit | 0c9edf88bf727b10ea41889687d74a1c0d70d9e0 (patch) | |
tree | 7f675c9c6607e0d9702afd3dbdb44959cd6def2e /boottime_tools | |
parent | 45fdf1f90968795fba45004cb739637e7d6a9173 (diff) | |
download | extras-0c9edf88bf727b10ea41889687d74a1c0d70d9e0.tar.gz |
Fix variable unpacking mismatch in bootanalyze.py
Fix for the below mismatch that I've seen in recent boot time runs
BootAnimEnd time or BootComplete-kernel not captured in both log,
cannot get time diff
main()
File "system/extras/boottime_tools/bootanalyze/bootanalyze.py", line 123, in main
error_time, components_to_monitor)
ValueError: need more than 4 values to unpack
Test: no unpack mismatch in recent runs
Change-Id: I4d39453964b9b4036d6c0aaff6cac1b030865445
Diffstat (limited to 'boottime_tools')
-rwxr-xr-x | boottime_tools/bootanalyze/bootanalyze.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boottime_tools/bootanalyze/bootanalyze.py b/boottime_tools/bootanalyze/bootanalyze.py index b8783585..e5c1f555 100755 --- a/boottime_tools/bootanalyze/bootanalyze.py +++ b/boottime_tools/bootanalyze/bootanalyze.py @@ -350,7 +350,7 @@ def iterate(args, search_events_pattern, timings_pattern, shutdown_events_patter if not logcat_event_time.get(KERNEL_TIME_KEY): print "kernel time not captured in logcat, cannot get time diff" - return None, None, None, None + return None, None, None, None, None, None diffs = [] diffs.append((logcat_event_time[KERNEL_TIME_KEY], logcat_event_time[KERNEL_TIME_KEY])) if logcat_event_time.get(BOOT_ANIM_END_TIME_KEY) and dmesg_event_time.get(BOOT_ANIM_END_TIME_KEY): @@ -360,7 +360,7 @@ def iterate(args, search_events_pattern, timings_pattern, shutdown_events_patter if not dmesg_event_time.get(KERNEL_BOOT_COMPLETE): print "BootAnimEnd time or BootComplete-kernel not captured in both log" +\ ", cannot get time diff" - return None, None, None, None + return None, None, None, None, None, None diffs.append((logcat_event_time[KERNEL_BOOT_COMPLETE],\ logcat_event_time[KERNEL_BOOT_COMPLETE] - dmesg_event_time[KERNEL_BOOT_COMPLETE])) |