Skip to content

Commit 780038d

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 c170f5d commit 780038d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

case-lib/lib.sh

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

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

13161320
DO_PERF_ANALYSIS=0

0 commit comments

Comments
 (0)