Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MHm4D-0006Fu-58 for mharc-grub-devel@gnu.org; Fri, 19 Jun 2009 17:56:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHm4C-0006Fd-1A for grub-devel@gnu.org; Fri, 19 Jun 2009 17:56:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHm46-0006CJ-GO for grub-devel@gnu.org; Fri, 19 Jun 2009 17:56:10 -0400 Received: from [199.232.76.173] (port=45036 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHm46-0006C6-Ck for grub-devel@gnu.org; Fri, 19 Jun 2009 17:56:06 -0400 Received: from mail-bw0-f228.google.com ([209.85.218.228]:42604) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHm45-0001N9-Q5 for grub-devel@gnu.org; Fri, 19 Jun 2009 17:56:06 -0400 Received: by bwz28 with SMTP id 28so2237816bwz.26 for ; Fri, 19 Jun 2009 14:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=8ICzjMfbXsDlQaAfS/6wuZSIVVGK084duSY1qO+QMnA=; b=fv1fCPLeIAvgB4M7vNHsn6v3EFfTy2gqhW0/cqZ0ihHXjlajXoDVogOny4PnNafFpS Ens2cB9v6aaN0AaB1gxWVszObrCSpVbfqOblfzSEq/1wf/JxKjYfYqcypzLICckpU/cT x8q6nDATulgcT89YVwZYL56STdMNnmdesnVZ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bjC5jVYp9ZizqzsFcqajqmfnnYfw8E4f45NGJNyASMH34gZmiHUmuNudpDJP4TJ/i6 cl967zEX3fkRS0s7erN0AG1x+fc6d1SIRgTAVEVVFpOD2ZgfDEuQmZ4bx3Ms09GRvosH kKGKrRKTpYQk4iaX9aEu1XO2wWzkwiky5QU+k= MIME-Version: 1.0 Received: by 10.204.102.14 with SMTP id e14mr2989414bko.183.1245448564740; Fri, 19 Jun 2009 14:56:04 -0700 (PDT) In-Reply-To: <1245448066.672.19.camel@mj> References: <1245424852.3431.30.camel@mj> <1245430369.28417.46.camel@mj> <1245448066.672.19.camel@mj> Date: Fri, 19 Jun 2009 23:56:04 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=00163662e5c6499475046cba9767 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] fix SigSegV and hang with grub-emu-usb 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, 19 Jun 2009 21:56:12 -0000 --00163662e5c6499475046cba9767 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Jun 19, 2009 at 11:47 PM, Pavel Roskin wrote: > On Fri, 2009-06-19 at 20:44 +0200, Vladimir 'phcoder' Serbinenko wrote: > > > I see the standard is grub_error(). Let's do it for SCSI as > > well. > > > > I don't understand what do you mean. grub_error () which don't come > > from previous function > > You fixed some code in one place, but it's present in more than one > place in the same function. Please either do it consistently or explain > why it's needed only in one place. > Yes I know, I just haven't paid enough attention. Sorry for this > > Also, I see that .open functions in files under /disk use grub_error() > to communicate errors to the caller. Please explain why you want to do > it differently in scsi.c. > return err is used if err is an error code recieved from another function which has already called grub_error (). It's the same in whole grub > > -- > Regards, > Pavel Roskin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git --00163662e5c6499475046cba9767 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Jun 19, 2009 at 11:47 PM, Pavel = Roskin <proski@gnu.o= rg> wrote:
On Fri, 2009-06-19 at 20:44 +0200, Vladimir 'phcoder&= #39; Serbinenko wrote:

> =A0 =A0 =A0 =A0 I see the standard is grub_error(). =A0Let's do it= for SCSI as
> =A0 =A0 =A0 =A0 well.
>
> I don't understand what do you mean. grub_error () which don't= come
> from previous function

You fixed some code in one place, but it's present in more than o= ne
place in the same function. =A0Please either do it consistently or explain<= br> why it's needed only in one place.
Yes I know, I just haven't paid=A0 enough attention. = Sorry for this

Also, I see that .open functions in files under /disk use grub_error()
to communicate errors to the caller. =A0Please explain why you want to do it differently in scsi.c.
return err is used if err is an error code recieved from = another function which has already called grub_error (). It's the same = in whole grub

--
Regards,
Pavel Roskin


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel



--
Regards
= Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phco= der.git
--00163662e5c6499475046cba9767--