From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>, Chunyan Liu <cyliu@suse.com>
Cc: jgross@suse.com, wei.liu2@citrix.com,
george.dunlap@eu.citrix.com,
George Dunlap <george.dunlap@citrix.com>,
xen-devel@lists.xen.org, jfehlig@suse.com,
Simon Cao <caobosimon@gmail.com>
Subject: Re: [PATCH V12 3/5] libxl: add pvusb API
Date: Thu, 14 Jan 2016 11:03:18 +0000 [thread overview]
Message-ID: <1452769398.2185.21.camel@citrix.com> (raw)
In-Reply-To: <22165.18064.452737.543799@mariner.uk.xensource.com>
On Tue, 2016-01-12 at 18:31 +0000, Ian Jackson wrote:
>
> > +static char *usb_interface_xenstore_encode(libxl__gc *gc, const char
> > *busid)
> > +{
> > + char *str = libxl__strdup(gc, busid);
> > + int i, len = strlen(str);
> > +
> > + for (i = 0; i < len; i++) {
> > + if (str[i] == '.')
> > + str[i] = '_';
> > + if (str[i] == ':')
> > + str[i] = '@';
>
> I know I'm late with this comment and it's trivial and my
> comaintainers may disagree, but I would find this
>
> + if (str[i] == '.') str[i] = '_';
> + if (str[i] == ':') str[i] = '@';
>
> clearer because the layout reflects the regular structure of the code.
> But please don't change this until another maintainer has commented
> and said whether they agree with me. Certainly this is observation of
> mine does not block this patch.
I would lean towards the layout Ian suggests too.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-01-14 11:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-23 2:24 [PATCH V12 0/5] xen pvusb toolstack work Chunyan Liu
2015-12-23 2:24 ` [PATCH V12 1/5] libxl: export some functions for pvusb use Chunyan Liu
2016-01-12 17:56 ` Ian Jackson
2015-12-23 2:24 ` [PATCH V12 2/5] libxl_utils: add internal function to read sysfs file contents Chunyan Liu
2016-01-12 17:56 ` Ian Jackson
2015-12-23 2:24 ` [PATCH V12 3/5] libxl: add pvusb API Chunyan Liu
2016-01-12 18:31 ` Ian Jackson
2016-01-14 5:41 ` Chun Yan Liu
2016-01-14 11:58 ` George Dunlap
2016-01-14 11:03 ` Ian Campbell [this message]
2015-12-23 2:24 ` [PATCH V12 4/5] xl: add pvusb commands Chunyan Liu
2016-01-12 19:02 ` [PATCH V12 5/5] domcreate: support pvusb in configuration file [and 1 more messages] Ian Jackson
2015-12-23 2:24 ` [PATCH V12 5/5] domcreate: support pvusb in configuration file Chunyan Liu
-- strict thread matches above, loose matches on Subject: below --
2015-12-22 7:01 [PATCH V12 0/5] xen pvusb toolstack work Chunyan Liu
2015-12-22 7:01 ` [PATCH V12 3/5] libxl: add pvusb API Chunyan Liu
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=1452769398.2185.21.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=caobosimon@gmail.com \
--cc=cyliu@suse.com \
--cc=george.dunlap@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=jfehlig@suse.com \
--cc=jgross@suse.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.