From: Wei Liu Subject: Re: libxl, flexarray_append_pair usage Date: Fri, 24 Apr 2015 10:23:21 +0100 Message-ID: <20150424092321.GG21871@zion.uk.xensource.com> References: <20150424091600.GA11059@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20150424091600.GA11059@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Wei Liu , Stefano Stabellini , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, Apr 24, 2015 at 11:16:00AM +0200, Olaf Hering wrote: > On Fri, Apr 24, Olaf Hering wrote: > > > flexarray_append(back, "state"); > > - flexarray_append(back, GCSPRINTF("%d", 1)); > > + flexarray_append(back, GCSPRINTF("%d", XenbusStateInitialising)); > > Should all such code be converted to flexarray_append_pair? > To reduce line length a short macro should be added, like FLXAP or > FLXPAIR or something else. I don't have very strong opinion on this. Wei. > > Olaf