* [PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler
@ 2017-05-11 12:57 Wei Liu
2017-05-11 14:11 ` Roger Pau Monné
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Wei Liu @ 2017-05-11 12:57 UTC (permalink / raw)
To: Xen-devel; +Cc: Ian Jackson, Julien Grall, Wei Liu, Roger Pau Monné
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="y", Size: 718 bytes --]
That function can return a whole slew of error codes. Translate them
to EXIT_FAILURE.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Julien Grall <julien.grall@arm.com>
Cc: Roger Pau Monné <roger.pau@citrix.com>
---
tools/xl/xl_misc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/xl/xl_misc.c b/tools/xl/xl_misc.c
index 9037e2b2f0..9c6227af23 100644
--- a/tools/xl/xl_misc.c
+++ b/tools/xl/xl_misc.c
@@ -182,7 +182,7 @@ int main_devd(int argc, char **argv)
}
}
- libxl_device_events_handler(ctx, 0);
+ ret = libxl_device_events_handler(ctx, 0) ? EXIT_FAILURE : EXIT_SUCCESS;
out:
return ret;
--
2.11.0
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler
2017-05-11 12:57 [PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler Wei Liu
@ 2017-05-11 14:11 ` Roger Pau Monné
2017-05-11 15:53 ` Ian Jackson
2017-05-11 17:51 ` Julien Grall
2 siblings, 0 replies; 4+ messages in thread
From: Roger Pau Monné @ 2017-05-11 14:11 UTC (permalink / raw)
To: Wei Liu; +Cc: Xen-devel, Julien Grall, Ian Jackson
On Thu, May 11, 2017 at 01:57:19PM +0100, Wei Liu wrote:
> That function can return a whole slew of error codes. Translate them
> to EXIT_FAILURE.
>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler
2017-05-11 12:57 [PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler Wei Liu
2017-05-11 14:11 ` Roger Pau Monné
@ 2017-05-11 15:53 ` Ian Jackson
2017-05-11 17:51 ` Julien Grall
2 siblings, 0 replies; 4+ messages in thread
From: Ian Jackson @ 2017-05-11 15:53 UTC (permalink / raw)
To: Wei Liu; +Cc: Xen-devel, Julien Grall, Roger Pau Monné
Wei Liu writes ("[PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler"):
> That function can return a whole slew of error codes. Translate them
> to EXIT_FAILURE.
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler
2017-05-11 12:57 [PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler Wei Liu
2017-05-11 14:11 ` Roger Pau Monné
2017-05-11 15:53 ` Ian Jackson
@ 2017-05-11 17:51 ` Julien Grall
2 siblings, 0 replies; 4+ messages in thread
From: Julien Grall @ 2017-05-11 17:51 UTC (permalink / raw)
To: Wei Liu, Xen-devel; +Cc: Ian Jackson, Roger Pau Monné
Hi Wei,
On 11/05/17 13:57, Wei Liu wrote:
> That function can return a whole slew of error codes. Translate them
> to EXIT_FAILURE.
>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
Cheers,
> ---
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Julien Grall <julien.grall@arm.com>
> Cc: Roger Pau Monné <roger.pau@citrix.com>
> ---
> tools/xl/xl_misc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/xl/xl_misc.c b/tools/xl/xl_misc.c
> index 9037e2b2f0..9c6227af23 100644
> --- a/tools/xl/xl_misc.c
> +++ b/tools/xl/xl_misc.c
> @@ -182,7 +182,7 @@ int main_devd(int argc, char **argv)
> }
> }
>
> - libxl_device_events_handler(ctx, 0);
> + ret = libxl_device_events_handler(ctx, 0) ? EXIT_FAILURE : EXIT_SUCCESS;
>
> out:
> return ret;
>
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-05-11 17:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-11 12:57 [PATCH for-4.9] xl: don't ignore return value from libxl_device_events_handler Wei Liu
2017-05-11 14:11 ` Roger Pau Monné
2017-05-11 15:53 ` Ian Jackson
2017-05-11 17:51 ` Julien Grall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.