All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Gary R Hook <grhookatwork@gmail.com>
Cc: stefanha@gmail.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/1] block migration: fix return value mismatch
Date: Mon, 24 Nov 2014 09:10:20 +0000	[thread overview]
Message-ID: <20141124091019.GA2404@work-vm> (raw)
In-Reply-To: <546F7FBA.6020307@gmail.com>

* Gary R Hook (grhookatwork@gmail.com) wrote:
> Stefan Hajnoczi <address@hidden> writes:
> 
> > On Wed, Nov 12, 2014 at 06:48:18PM +0000, Gary Hook wrote:
> >> -    return qemu_ftell(f) - last_ftell;
> >> +    delta_ftell = qemu_ftell(f) - last_ftell;
> >> +    return( (delta_ftell > 0) ? 1 : (delta_ftell < 0) ? -1 : 0 );
> >
> > Good find!
> >
> > Please don't nest the ternary operator, it is hard to read.
> >
> > if (delta_ftell < 0) {
> >     return -1;
> > } else if (delta_ftell > 0) {
> >     return 1;
> > } else {
> >     return 0;
> > }
> 
> So now that it's clear that I fully botched the patch submission, I would
> like to follow up: shall I resubmit this change?
> 
> I don't see this fix in the current source (which makes sense due to the 2.2
> RC2 work) but folks are asking. And it appears that there's a bug report
> over at RedHat that may be the same problem.
> 
> I think I'll add to my .sig: "Look, ma, only 72 columns!"

Please resubmit it, especially with the correct Signed-off-by

Dave

> 
> -- 
> Gary R Hook
> Senior Kernel Engineer
> NIMBOXX, Inc
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

  reply	other threads:[~2014-11-24  9:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-21 18:08 [Qemu-devel] [PATCH 1/1] block migration: fix return value mismatch Gary R Hook
2014-11-24  9:10 ` Dr. David Alan Gilbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-13 16:44 Gary Hook
2014-11-13 17:03 ` Eric Blake
2014-11-13 17:32   ` Gary Hook
2014-11-13 18:55     ` Stefan Hajnoczi
2014-11-13 21:12       ` Gary R Hook
2014-11-13 16:43 Gary Hook
2014-11-12 18:48 Gary Hook
2014-11-12 20:27 ` Eric Blake
2014-11-13  7:57   ` Markus Armbruster
2014-11-13 11:20 ` Stefan Hajnoczi
2014-11-13 12:46   ` Markus Armbruster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141124091019.GA2404@work-vm \
    --to=dgilbert@redhat.com \
    --cc=grhookatwork@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.