diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-10-26 16:40:05 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@citrix.com> | 2012-10-26 16:40:05 +0100 |
commit | d0356275ca9c9ca84fcb0e1fe69745794de9e8f7 (patch) | |
tree | 8ff0d3e935ac5759cc588329f1d65a622305dfb2 | |
parent | fdd0127ae221c1d7da709a7a5b2321fd7c239652 (diff) | |
download | xen-d0356275ca9c9ca84fcb0e1fe69745794de9e8f7.tar.gz xen-d0356275ca9c9ca84fcb0e1fe69745794de9e8f7.tar.bz2 xen-d0356275ca9c9ca84fcb0e1fe69745794de9e8f7.zip |
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@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset: 25838:2f418851f36d
Backport-requested-by: Ian Campbell <Ian.Campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r-- | tools/libxl/libxl_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 8e8410e214..c3283f1d88 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -854,7 +854,8 @@ static void device_backend_callback(libxl__egc *egc, libxl__ev_devstate *ds, } 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; } |