Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JmuNp-00038x-PP for mharc-grub-devel@gnu.org; Fri, 18 Apr 2008 13:28:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmuNn-00038n-EB for grub-devel@gnu.org; Fri, 18 Apr 2008 13:28:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmuNl-00038b-CO for grub-devel@gnu.org; Fri, 18 Apr 2008 13:28:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmuNl-00038Y-8s for grub-devel@gnu.org; Fri, 18 Apr 2008 13:28:17 -0400 Received: from ti-out-0910.google.com ([209.85.142.187]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JmuNl-0007ol-DL for grub-devel@gnu.org; Fri, 18 Apr 2008 13:28:17 -0400 Received: by ti-out-0910.google.com with SMTP id a20so109903tia.10 for ; Fri, 18 Apr 2008 10:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=/09SjmD3z3j9OO2x38dj/cH04zSVcMFYmvhvYMJ8BrY=; b=tByR7Yt0vfV08EeSTBPAeHEy+jj8UdzRCFnVpjzRwnw2s7T8Aabzf0hTE0QJXk79wulIHTPDiSn9rPkwJxgBSf0tsaLoy7KKWJg7NO7WUuDi6yn/INKPAHdInJb9ilI7/b3K/st4ofOTK/I9BXJpU9lQRb049eF7YMjftl8rUXw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=d6Ze0Ej5KmNV3Qs8WEyi0Z+QV8pGfQEAKrs60M2Ms84aC/owo1YGxWNHbhl/mQ6DUp7MK/P72QyVxBn49lhkXvpGS5BNVHFtNDz6SVzwdi22G22FZnVLI9g8C5SLP3WJTeR1mMSQfzdsrrHb5wO64gtEemc7N17lbW3s/87xG/0= Received: by 10.110.14.12 with SMTP id 12mr298772tin.1.1208539694826; Fri, 18 Apr 2008 10:28:14 -0700 (PDT) Received: by 10.110.62.19 with HTTP; Fri, 18 Apr 2008 10:28:14 -0700 (PDT) Message-ID: Date: Sat, 19 Apr 2008 01:28:14 +0800 From: Bean To: "The development of GRUB 2" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: [PATCH] bug fix for ieee1275 console X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2008 17:28:19 -0000 Hi, diff --git a/term/ieee1275/ofconsole.c b/term/ieee1275/ofconsole.c index b449507..0d3ba46 100644 --- a/term/ieee1275/ofconsole.c +++ b/term/ieee1275/ofconsole.c @@ -84,7 +84,10 @@ grub_ofconsole_putchar (grub_uint32_t c) { grub_curr_x++; if (grub_curr_x > grub_ofconsole_width) - grub_putcode ('\n'); + { + grub_putcode ('\n'); + grub_curr_x++; + } } grub_ieee1275_write (stdout_ihandle, &chr, 1, 0); } The reason for this patch is that after grub_putcode('\n'), grub_curr_x will be reset to 0, we need to increment it again for the current character. -- Bean