File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -65,23 +65,24 @@ func_logger_exit()
65
65
}
66
66
67
67
# check if we get any sof-logger errors
68
- logger_err=` grep -i " error" $error_file `
68
+ logger_err=$( grep -i ' error' " $error_file " )
69
69
if [[ $logger_err ]]; then
70
70
dloge " No available log to export due to sof-logger errors."
71
71
func_logger_exit 1 ' error'
72
72
fi
73
73
74
74
# '\.c\:[1-9]' to filter like '.c:6' this type keyword like:
75
75
# [3017136.770833] (11.302083) c0 SA src/lib/agent.c:65 ERROR validate(), ll drift detected, delta = 25549
76
- fw_log_err=` grep -i " error" $data_file | grep -v ' \.c\:[1-9]' `
76
+ fw_log_err=$( grep -i ' error' " $data_file " | grep -v ' \.c\:[1-9]' )
77
+
77
78
# '[[:blank:]]TIMESTAMP.*CONTENT$' to filter the log header:
78
79
# TIMESTAMP DELTA C# COMPONENT LOCATION CONTENT
79
- if [[ ! $( sed -n ' /[[:blank:]]TIMESTAMP.*CONTENT$/p' $ data_file) ]]; then
80
- dloge " No available log to export. "
80
+ if [[ ! $( sed -n ' /[[:blank:]]TIMESTAMP.*CONTENT$/p' " ${ data_file} " ) ]]; then
81
+ dloge " Log header not found in ${data_file} "
81
82
func_logger_exit 1
82
83
# we catch error from fw log
83
84
elif [[ $fw_log_err ]]; then
84
- dloge " Errors in firmware log: "
85
+ dloge " Error(s) found in firmware log ${data_file} "
85
86
func_logger_exit 1
86
87
fi
87
88
You can’t perform that action at this time.
0 commit comments