All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com,
	xen-devel@lists.xen.org
Subject: Re: [PATCH for-4.6] libxl: format fd flags with 0x since they are hex.
Date: Fri, 11 Sep 2015 16:06:48 +0100	[thread overview]
Message-ID: <1441984008.3549.80.camel@citrix.com> (raw)
In-Reply-To: <20150911143228.GP1695@zion.uk.xensource.com>

On Fri, 2015-09-11 at 15:32 +0100, Wei Liu wrote:
> On Fri, Sep 11, 2015 at 03:19:54PM +0100, Ian Campbell wrote:
> > Commit 93f5194e7270 "libxl: clear O_NONBLOCK|O_NDELAY on migration fd
> > and reinstate afterwards" added some logging of fcntl.F_GETFL at all
> > as %x without a 0x prefix to make it clear they numbers are hex. Fix
> > this alongwith an inadvertent logging of the fd itself as hex.
> > 
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> 
> Acked-by: Wei Liu <wei.liu2@citrix.com>

Applied to staging and 4.6.

Thankis
Ian.
> 
> > ---
> >  tools/libxl/libxl.c | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)
> > 
> > diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
> > index d6efdd8..0ea7d9c 100644
> > --- a/tools/libxl/libxl.c
> > +++ b/tools/libxl/libxl.c
> > @@ -6530,7 +6530,7 @@ int libxl__fd_flags_modify_save(libxl__gc *gc,
> > int fd,
> >          goto out_err;
> >      }
> >  
> > -    LOG(DEBUG, "fnctl F_GETFL flags for fd %d are %x", fd, fdfl);
> > +    LOG(DEBUG, "fnctl F_GETFL flags for fd %d are 0x%x", fd, fdfl);
> >  
> >      if (r_oldflags)
> >          *r_oldflags = fdfl;
> > @@ -6538,7 +6538,7 @@ int libxl__fd_flags_modify_save(libxl__gc *gc,
> > int fd,
> >      fdfl &= mask;
> >      fdfl |= val;
> >  
> > -    LOG(DEBUG, "fnctl F_SETFL of fd %d to %x", fd, fdfl);
> > +    LOG(DEBUG, "fnctl F_SETFL of fd %d to 0x%x", fd, fdfl);
> >  
> >      ret = fcntl(fd, F_SETFL, fdfl);
> >      if (ret < 0) {
> > @@ -6557,11 +6557,11 @@ int libxl__fd_flags_restore(libxl__gc *gc, int
> > fd, int fdfl)
> >  {
> >      int ret, rc;
> >  
> > -    LOG(DEBUG, "fnctl F_SETFL of fd %d to %x", fd, fdfl);
> > +    LOG(DEBUG, "fnctl F_SETFL of fd %d to 0x%x", fd, fdfl);
> >  
> >      ret = fcntl(fd, F_SETFL, fdfl);
> >      if (ret < 0) {
> > -        LOGE(ERROR, "failed to fcntl.F_SETFL for fd %x", fd);
> > +        LOGE(ERROR, "failed to fcntl.F_SETFL for fd %d", fd);
> >          rc = ERROR_FAIL;
> >          goto out_err;
> >      }

  reply	other threads:[~2015-09-11 15:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11 14:19 [PATCH for-4.6] libxl: format fd flags with 0x since they are hex Ian Campbell
2015-09-11 14:30 ` Ian Campbell
2015-09-11 14:32 ` Wei Liu
2015-09-11 15:06   ` Ian Campbell [this message]
2015-09-11 14:45 ` Ian Jackson

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=1441984008.3549.80.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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.