|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.2-testing] libxl: fix error message in device_backend_callback
# HG changeset patch
# User Roger Pau Monne <roger.pau@xxxxxxxxxx>
# Date 1351266005 -3600
# Node ID cd0ae0ba4653ab4d35a8b06db6e0a40b65065575
# Parent 537776f51f79c5789d06f97b363596a197c3e71c
libxl: fix error message in device_backend_callback
device_backend_callback error path always says "unable to disconnect",
but this can also happen during the connection of a device. Fix the
error message using the information in aodev->action.
Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
xen-unstable changeset: 25838:2f418851f36d
Backport-requested-by: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
diff -r 537776f51f79 -r cd0ae0ba4653 tools/libxl/libxl_device.c
--- a/tools/libxl/libxl_device.c Fri Oct 26 16:10:55 2012 +0100
+++ b/tools/libxl/libxl_device.c Fri Oct 26 16:40:05 2012 +0100
@@ -854,7 +854,8 @@ static void device_backend_callback(libx
}
if (rc) {
- LOG(ERROR, "unable to disconnect device with path %s",
+ LOG(ERROR, "unable to %s device with path %s",
+ aodev->action == DEVICE_CONNECT ? "connect" : "disconnect",
libxl__device_backend_path(gc, aodev->dev));
goto out;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |