Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvHn3-0000ju-CW for mharc-grub-devel@gnu.org; Mon, 04 Jun 2007 15:00:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvHn0-0000jg-Kb for grub-devel@gnu.org; Mon, 04 Jun 2007 15:00:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvHmy-0000jU-9N for grub-devel@gnu.org; Mon, 04 Jun 2007 15:00:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvHmy-0000jR-1h for grub-devel@gnu.org; Mon, 04 Jun 2007 15:00:24 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvHmx-0007pG-Ka for grub-devel@gnu.org; Mon, 04 Jun 2007 15:00:23 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1HvHmv-0004ay-OP for grub-devel@gnu.org; Mon, 04 Jun 2007 21:00:22 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1HvHmv-0005Yc-8V for grub-devel@gnu.org; Mon, 04 Jun 2007 21:00:21 +0200 Date: Mon, 4 Jun 2007 21:00:21 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20070604190021.GA21341@aragorn> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. Subject: a pair of things I found when debugging.. 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: Mon, 04 Jun 2007 19:00:27 -0000 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline A pair of things I found when debugging powerpc issues. Let me know what you think (context comment follows). -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list. --mP3DRpeJDSE+ciuQ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="debug.diff" diff -ur grub2-1.95+20070520.old/util/biosdisk.c grub2-1.95+20070520/util/biosdisk.c --- grub2-1.95+20070520.old/util/biosdisk.c 2007-06-04 20:35:48.000000000 +0200 +++ grub2-1.95+20070520/util/biosdisk.c 2007-06-04 20:35:53.000000000 +0200 @@ -732,7 +732,7 @@ int find_partition (grub_disk_t disk __attribute__ ((unused)), const grub_partition_t partition) { - struct grub_pc_partition *pcdata = 0; + struct grub_pc_partition *pcdata = NULL; if (strcmp (partition->partmap->name, "pc_partition_map") == 0) pcdata = partition->data; @@ -816,8 +816,7 @@ if (dos_part < 0) { grub_disk_close (disk); - grub_error (GRUB_ERR_BAD_DEVICE, - "cannot find the partition of `%s'", os_dev); + grub_util_error ("cannot find the partition of `%s'", os_dev); return 0; } diff -ur grub2-1.95+20070520.old/util/grub-probe.c grub2-1.95+20070520/util/grub-probe.c --- grub2-1.95+20070520.old/util/grub-probe.c 2007-06-04 20:35:48.000000000 +0200 +++ grub2-1.95+20070520/util/grub-probe.c 2007-06-04 20:35:53.000000000 +0200 @@ -81,7 +81,7 @@ probe (const char *path) { char *device_name; - char *drive_name = 0; + char *drive_name = NULL; grub_device_t dev; grub_fs_t fs; --mP3DRpeJDSE+ciuQ--