From: Tim Deegan Subject: [PATCH] libxl: give reasons for ctx init failures Date: Thu, 17 Jun 2010 15:45:15 +0100 Message-ID: <20100617144515.GJ15976@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="yNb1oOkm5a9FJOVX" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline libxl: give reasons for ctx init failures Signed-off-by: Tim Deegan --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: attachment; filename="xl_init_failures" diff -r 764e41b09017 tools/libxl/libxl.c --- a/tools/libxl/libxl.c Thu Jun 17 08:53:12 2010 +0100 +++ b/tools/libxl/libxl.c Thu Jun 17 15:42:58 2010 +0100 @@ -51,12 +51,16 @@ ctx->xch = xc_interface_open(lg,lg,0); if (!ctx->xch) { + XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, errno, + "cannot open libxc handle"); free(ctx->alloc_ptrs); return ERROR_FAIL; } ctx->xsh = xs_daemon_open(); if (!ctx->xsh) { + XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, errno, + "cannot connect to xenstore"); xc_interface_close(ctx->xch); free(ctx->alloc_ptrs); return ERROR_FAIL; --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --yNb1oOkm5a9FJOVX--