From: Ian Campbell Subject: Re: [PATCH v2 OPW] libxl: change most remaining LIBXL_LOG to LOG in libxl_qmp.c Date: Tue, 19 Nov 2013 14:35:26 +0000 Message-ID: <1384871726.30014.114.camel@kazak.uk.xensource.com> References: <[PATCH OPW 01/11] libxl: change most remaining LIBXL_LOG to LOG in libxl_qmp.c> <1384479667-15052-1-git-send-email-kelleynnn@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1384479667-15052-1-git-send-email-kelleynnn@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Kelley Nielsen Cc: anthony.perard@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2013-11-14 at 17:41 -0800, Kelley Nielsen wrote: > Coding style has recently been changed for libxl. The convenience > macro LOG() has been introduced, and invocations of the old macro > LIBXL__LOG() are to be replaced with it. Change occurences of the > old macro to the new one in the functions qmp_handle_response() > and qmp_handle_error_response(). The new macros need access to a > local libxl__gc *gc, so add it as a parameter to both these functions, > and pass the instance in qmp_next() down the call chain to > qmp_handle_response() and in turn to qmp_handle_error_response(). > > Suggested-by: Anthony PERARD > Signed-off-by: Kelley Nielsen > Reviewed-by: Anthony PERARD Thanks, I've applied (see other mail) with one small tweak: [...] > @@ -317,14 +315,14 @@ static int qmp_handle_response(libxl__qmp_handler *qmp, > /* tell that the id have been processed */ > qmp->wait_for_id = 0; > } > - LIBXL_STAILQ_REMOVE( > - &qmp->callback_list, pp, callback_id_pair, next); > + LIBXL_STAILQ_REMOVE(&qmp->callback_list, pp, callback_id_pair, > + next); > free(pp); > } > - return 0; > + return 0; I don't think this w/s change (the return bit, not the STAILQ bit) was intentional/desirable so I cut it out.