From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: [PATCH] alsa-info.sh: include 1 line of dmesg context Date: Sat, 18 Jul 2009 10:28:13 +0800 Message-ID: <20090718022812.GA10524@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by alsa0.perex.cz (Postfix) with ESMTP id 054232449F for ; Sat, 18 Jul 2009 04:28:22 +0200 (CEST) Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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 --- 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 }