diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2012-09-10 11:13:53 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@citrix.com> | 2012-09-10 11:13:53 +0100 |
commit | 4760e67ccd29aba4406230d411ec2635dfb8f7a7 (patch) | |
tree | 734ef2d0f29befb784029050c239f554c48fd0f0 /tools/libxl/libxl_device.c | |
parent | aca51da7badfe63f0dc4848dc2a13d55c91f1b6f (diff) | |
download | xen-4760e67ccd29aba4406230d411ec2635dfb8f7a7.tar.gz xen-4760e67ccd29aba4406230d411ec2635dfb8f7a7.tar.bz2 xen-4760e67ccd29aba4406230d411ec2635dfb8f7a7.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>
Diffstat (limited to 'tools/libxl/libxl_device.c')
-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; } |