Skip to contentSkip to conversation

libxl: give reasons for ctx init failures

PATCH New Tim Deegan 1 participant 1 message Jun 17, 2010

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 libxl: give reasons for ctx init failures

libxl: give reasons for ctx init failures

tools/libxl/libxl.c +4 -0
diff -r 764e41b09017 tools/libxl/libxl.c
@@ -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