|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] libxl: improve logging on failure to star
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1306250153 -3600
# Node ID e38f655a72451b30b7547556b13397ea01434ad6
# Parent b04e57ec4671e15823a561e118d6e0cda6c4daa2
libxl: improve logging on failure to start device model.
Distinguish between device model dying during startup (libxl__spawn_check
returns failure) and timing out while waiting for the xenstore node to show up.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
diff -r b04e57ec4671 -r e38f655a7245 tools/libxl/libxl_device.c
--- a/tools/libxl/libxl_device.c Tue May 24 16:12:25 2011 +0100
+++ b/tools/libxl/libxl_device.c Tue May 24 16:15:53 2011 +0100
@@ -445,6 +445,8 @@
if ( starting ) {
rc = libxl__spawn_check(gc, starting->for_spawn);
if ( rc ) {
+ LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
+ "Device Model died during startup");
rc = -1;
goto err_died;
}
@@ -487,10 +489,10 @@
}
}
}
+ LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "Device Model not ready");
err_died:
xs_unwatch(xsh, path, path);
xs_daemon_close(xsh);
- LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "Device Model not ready");
err:
return -1;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] libxl: improve logging on failure to start device model.,
Xen patchbot-unstable <=
|
|
|
|
|