[PATCH] alsa-info.sh: include 1 line of dmesg context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So as to include possible ALSA messages without the common keywords,
as well as be more confident on the completeness/coverage of the report. 

It also shows nice '--' separators between the dmesg ranges.

Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx>
---
 utils/alsa-info.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- alsa-driver.orig/utils/alsa-info.sh
+++ alsa-driver/utils/alsa-info.sh
@@ -247,7 +247,7 @@ withdmesg() {
 	echo "!!ALSA/HDA dmesg" >> $FILE
 	echo "!!------------------" >> $FILE
 	echo "" >> $FILE
-	dmesg | grep -E 'ALSA|HDA|HDMI|sound|hda.codec|hda.intel' >> $FILE
+	dmesg | grep -C1 -E 'ALSA|HDA|HDMI|sound|hda.codec|hda.intel' >> $FILE
 	echo "" >> $FILE
 	echo "" >> $FILE
 }
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux