Skip to content

Commit 68c52ea

Browse files
committed
lib.sh: set_alsa: Log ALSA state difference
Log difference between the current ALSA state and the restored ALSA state. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
1 parent 2bab019 commit 68c52ea

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

case-lib/lib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,10 @@ set_alsa()
13121312

13131313
alsactl store -f "${asound_state}.txt" 2>&1 || rc=$?
13141314
[[ "${rc}" -ne 0 ]] && dlogw "alsactl store error=${rc}"
1315+
1316+
printf '%s\n' '-vv------- Check ALSA state difference -------vv-' >> "${alsa_log}"
1317+
diff -u --report-identical-files "${asound_state}_old.txt" "${asound_state}.txt" >> "${alsa_log}" 2>&1 || rc=$?
1318+
dlogi "ALSA state difference check result=${rc}"
13151319
}
13161320

13171321
DO_PERF_ANALYSIS=0

0 commit comments

Comments
 (0)