Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvHpk-0003PS-2s for mharc-grub-devel@gnu.org; Mon, 04 Jun 2007 15:03:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvHph-0003KG-HA for grub-devel@gnu.org; Mon, 04 Jun 2007 15:03:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvHpg-0003Fl-1d for grub-devel@gnu.org; Mon, 04 Jun 2007 15:03:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvHpf-0003Fb-UT for grub-devel@gnu.org; Mon, 04 Jun 2007 15:03:11 -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 1HvHpf-00087M-9e for grub-devel@gnu.org; Mon, 04 Jun 2007 15:03:11 -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 1HvHpe-0004bB-5Q for grub-devel@gnu.org; Mon, 04 Jun 2007 21:03:10 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1HvHpf-0005aH-IB for grub-devel@gnu.org; Mon, 04 Jun 2007 21:03:11 +0200 Date: Mon, 4 Jun 2007 21:03:11 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20070604190311.GA21373@aragorn> References: <20070604190021.GA21341@aragorn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070604190021.GA21341@aragorn> 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: Re: 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:03:14 -0000 On Mon, Jun 04, 2007 at 09:00:21PM +0200, Robert Millan wrote: > - struct grub_pc_partition *pcdata = 0; > + struct grub_pc_partition *pcdata = NULL; > >[...] > > - char *drive_name = 0; > + char *drive_name = NULL; I generaly find that NULL makes it clearer for pointers, do you have a preference for 0 on these? > @@ -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; Not sure what I'm missing, but these grub_error calls seem to be pretty useless. This one in particular was the culprit to one of the powerpc problems I just fixed, and I had to replace it with grub_util_error() to find out. -- 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.