* [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again)
@ 2018-12-13 17:58 Markus Armbruster
2018-12-13 21:28 ` Eric Blake
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Markus Armbruster @ 2018-12-13 17:58 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial
Patch created mechanically by rerunning:
$ spatch --in-place --sp-file scripts/coccinelle/use-error_fatal.cocci \
--macro-file scripts/cocci-macro-file.h vl.c
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
vl.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/vl.c b/vl.c
index a5ae5f23d2..702a828ca2 100644
--- a/vl.c
+++ b/vl.c
@@ -3138,11 +3138,8 @@ int main(int argc, char **argv, char **envp)
Visitor *v;
BlockdevOptions_queue *bdo;
- v = qobject_input_visitor_new_str(optarg, "driver", &err);
- if (!v) {
- error_report_err(err);
- exit(1);
- }
+ v = qobject_input_visitor_new_str(optarg, "driver",
+ &error_fatal);
bdo = g_new(BlockdevOptions_queue, 1);
visit_type_BlockdevOptions(v, NULL, &bdo->bdo,
--
2.17.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again)
2018-12-13 17:58 [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again) Markus Armbruster
@ 2018-12-13 21:28 ` Eric Blake
2018-12-14 10:16 ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Eric Blake @ 2018-12-13 21:28 UTC (permalink / raw)
To: Markus Armbruster, qemu-devel; +Cc: qemu-trivial
On 12/13/18 11:58 AM, Markus Armbruster wrote:
> Patch created mechanically by rerunning:
>
> $ spatch --in-place --sp-file scripts/coccinelle/use-error_fatal.cocci \
> --macro-file scripts/cocci-macro-file.h vl.c
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> vl.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again)
2018-12-13 17:58 [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again) Markus Armbruster
2018-12-13 21:28 ` Eric Blake
@ 2018-12-14 10:16 ` Laurent Vivier
2018-12-14 10:43 ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-12-17 13:29 ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
3 siblings, 0 replies; 5+ messages in thread
From: Laurent Vivier @ 2018-12-14 10:16 UTC (permalink / raw)
To: Markus Armbruster, qemu-devel; +Cc: qemu-trivial
On 13/12/2018 18:58, Markus Armbruster wrote:
> Patch created mechanically by rerunning:
>
> $ spatch --in-place --sp-file scripts/coccinelle/use-error_fatal.cocci \
> --macro-file scripts/cocci-macro-file.h vl.c
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> vl.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again)
2018-12-13 17:58 [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again) Markus Armbruster
2018-12-13 21:28 ` Eric Blake
2018-12-14 10:16 ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
@ 2018-12-14 10:43 ` Philippe Mathieu-Daudé
2018-12-17 13:29 ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-12-14 10:43 UTC (permalink / raw)
To: Markus Armbruster, qemu-devel; +Cc: qemu-trivial
On 12/13/18 6:58 PM, Markus Armbruster wrote:
> Patch created mechanically by rerunning:
>
> $ spatch --in-place --sp-file scripts/coccinelle/use-error_fatal.cocci \
> --macro-file scripts/cocci-macro-file.h vl.c
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> vl.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index a5ae5f23d2..702a828ca2 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -3138,11 +3138,8 @@ int main(int argc, char **argv, char **envp)
> Visitor *v;
> BlockdevOptions_queue *bdo;
>
> - v = qobject_input_visitor_new_str(optarg, "driver", &err);
> - if (!v) {
> - error_report_err(err);
> - exit(1);
> - }
> + v = qobject_input_visitor_new_str(optarg, "driver",
> + &error_fatal);
>
> bdo = g_new(BlockdevOptions_queue, 1);
> visit_type_BlockdevOptions(v, NULL, &bdo->bdo,
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again)
2018-12-13 17:58 [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again) Markus Armbruster
` (2 preceding siblings ...)
2018-12-14 10:43 ` [Qemu-devel] " Philippe Mathieu-Daudé
@ 2018-12-17 13:29 ` Laurent Vivier
3 siblings, 0 replies; 5+ messages in thread
From: Laurent Vivier @ 2018-12-17 13:29 UTC (permalink / raw)
To: Markus Armbruster, qemu-devel; +Cc: qemu-trivial
On 13/12/2018 18:58, Markus Armbruster wrote:
> Patch created mechanically by rerunning:
>
> $ spatch --in-place --sp-file scripts/coccinelle/use-error_fatal.cocci \
> --macro-file scripts/cocci-macro-file.h vl.c
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> vl.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index a5ae5f23d2..702a828ca2 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -3138,11 +3138,8 @@ int main(int argc, char **argv, char **envp)
> Visitor *v;
> BlockdevOptions_queue *bdo;
>
> - v = qobject_input_visitor_new_str(optarg, "driver", &err);
> - if (!v) {
> - error_report_err(err);
> - exit(1);
> - }
> + v = qobject_input_visitor_new_str(optarg, "driver",
> + &error_fatal);
>
> bdo = g_new(BlockdevOptions_queue, 1);
> visit_type_BlockdevOptions(v, NULL, &bdo->bdo,
>
Applied to my trivial-patches branch.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-12-17 13:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-13 17:58 [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again) Markus Armbruster
2018-12-13 21:28 ` Eric Blake
2018-12-14 10:16 ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2018-12-14 10:43 ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-12-17 13:29 ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
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).