Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TGr6k-0007y2-Ou for mharc-grub-devel@gnu.org; Wed, 26 Sep 2012 08:52:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGr6f-0007xv-Sw for grub-devel@gnu.org; Wed, 26 Sep 2012 08:52:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGr6X-0008Ax-27 for grub-devel@gnu.org; Wed, 26 Sep 2012 08:52:49 -0400 Received: from chiark.greenend.org.uk ([212.13.197.229]:43560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGr6W-0008AS-Sk for grub-devel@gnu.org; Wed, 26 Sep 2012 08:52:40 -0400 Received: from [172.20.153.9] (helo=riva.pelham.vpn.ucam.org) by chiark.greenend.org.uk (Debian Exim 4.72 #1) with esmtps (return-path cjwatson@ubuntu.com) id 1TGr6V-0003WM-OC; Wed, 26 Sep 2012 13:52:39 +0100 Received: from localhost ([127.0.0.1] helo=sarantium.pelham.vpn.ucam.org) by riva.pelham.vpn.ucam.org with esmtp (Exim 4.72) (envelope-from ) id 1TGr6U-0002mQ-0H; Wed, 26 Sep 2012 13:52:38 +0100 Received: from riva.dynamic.greenend.org.uk (localhost [127.0.0.1]) by sarantium.pelham.vpn.ucam.org (Postfix) with ESMTPS id A28B63E4091; Wed, 26 Sep 2012 13:52:35 +0100 (BST) Date: Wed, 26 Sep 2012 13:52:34 +0100 From: Colin Watson To: The development of GNU GRUB Subject: Re: [PATCH] suppress error message "/grub2/locale/en.mo.gz not found" Message-ID: <20120926125234.GB26558@riva.dynamic.greenend.org.uk> References: <1348469509-21079-1-git-send-email-mchang@suse.com> <506029C8.8000804@kiilerich.com> <1348512057.1612.10.camel@opensuse.site> <20120925215411.GB25791@riva.dynamic.greenend.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 212.13.197.229 Cc: Andrey Borzenkov X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2012 12:52:53 -0000 On Wed, Sep 26, 2012 at 03:44:31PM +0800, Michael Chang wrote: > The error message and number are staging in the buffer and it's up to > the module to use grub_print_error (...) to flush all pending messages > to the screen. Nevertheless you could stack errors with push|pop, > which is extremely useful as grub2 could be stacked by modules .. That is one way to do it, but it's also possible to clear errors you're not interested in without that. There's an "Error Handling" section in docs/grub-dev.texi which you may find useful. -- Colin Watson [cjwatson@ubuntu.com]