* [PATCH] libxl: fix error message in device_backend_callback
@ 2012-09-04 15:29 Roger Pau Monne
2012-09-10 10:15 ` Ian Campbell
0 siblings, 1 reply; 2+ messages in thread
From: Roger Pau Monne @ 2012-09-04 15:29 UTC (permalink / raw)
To: xen-devel; +Cc: Roger Pau Monne
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>
---
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 8e8410e..c3283f1 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;
}
--
1.7.7.5 (Apple Git-26)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libxl: fix error message in device_backend_callback
2012-09-04 15:29 [PATCH] libxl: fix error message in device_backend_callback Roger Pau Monne
@ 2012-09-10 10:15 ` Ian Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2012-09-10 10:15 UTC (permalink / raw)
To: Roger Pau Monne; +Cc: Jan Beulich, xen-devel@lists.xen.org
On Tue, 2012-09-04 at 16:29 +0100, Roger Pau Monne wrote:
> 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>
and applied.
Jan, can we consider this one for 4.2.1 please.
Ian.
> ---
> 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 8e8410e..c3283f1 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;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-10 10:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-04 15:29 [PATCH] libxl: fix error message in device_backend_callback Roger Pau Monne
2012-09-10 10:15 ` Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).