[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: give reasons for ctx init failures
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1276866462 -3600 # Node ID 8e3658934612b4f1fc2a5ea14ae43bebc5f61815 # Parent 715bf3974893b06609f2995c5d745c2d91eb4c26 libxl: give reasons for ctx init failures Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx> --- tools/libxl/libxl.c | 4 ++++ 1 files changed, 4 insertions(+) diff -r 715bf3974893 -r 8e3658934612 tools/libxl/libxl.c --- a/tools/libxl/libxl.c Fri Jun 18 14:07:19 2010 +0100 +++ b/tools/libxl/libxl.c Fri Jun 18 14:07:42 2010 +0100 @@ -51,12 +51,16 @@ int libxl_ctx_init(struct libxl_ctx *ctx 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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |