Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sof_perf_analyzer: fix exception when kernel message not provided
If kernel message file is not provided, the component_name dict will be empty, in calculating the maximum length of component names, we calls the max function with an empty sequence, which raises below error: "ValueError: max() arg is an empty sequence" This patch checks if component_name dict is empty, and on empty, provides a default value. Signed-off-by: Chao Song <chao.song@linux.intel.com>
- Loading branch information