libxl: give reasons for ctx init failures
PATCH 1/1 libxl: give reasons for ctx init failures
libxl: give reasons for ctx init failures
Signed-off-by Tim Deegan <[email protected]>
tools/libxl/libxl.c +4 -0
@@ -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 ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel