[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: fix error message in device_backend_callback
# HG changeset patch # User Roger Pau Monne <roger.pau@xxxxxxxxxx> # Date 1347272033 -3600 # Node ID 2f418851f36dba10fbcc173ef1a3272679f6b907 # Parent 87cb4b6f53d374d3b1415cb77f7ee3d60c4d06c5 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> --- diff -r 87cb4b6f53d3 -r 2f418851f36d tools/libxl/libxl_device.c --- a/tools/libxl/libxl_device.c Mon Sep 10 10:54:13 2012 +0200 +++ b/tools/libxl/libxl_device.c Mon Sep 10 11:13:53 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 |