[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 5/5] spice-qemu-char: convert qemu_chr_open_s
From: |
Michael Tokarev |
Subject: |
Re: [Qemu-devel] [PATCH v2 5/5] spice-qemu-char: convert qemu_chr_open_spice_vmc to use Error API |
Date: |
Mon, 03 Nov 2014 13:04:52 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 |
03.11.2014 12:44, zhanghailiang wrote:
[]
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -4252,7 +4252,7 @@ ChardevReturn *qmp_chardev_add(const char *id,
> ChardevBackend *backend,
> #endif
> #ifdef CONFIG_SPICE
> case CHARDEV_BACKEND_KIND_SPICEVMC:
> - chr = qemu_chr_open_spice_vmc(backend->spicevmc->type);
> + chr = qemu_chr_open_spice_vmc(backend->spicevmc->type, errp);
> break;
> case CHARDEV_BACKEND_KIND_SPICEPORT:
> chr = qemu_chr_open_spice_port(backend->spiceport->fqdn);
Now this is funny. Why we have two functions nearby using different
error reporting APIs? Maybe qemu_chr_open_spice_port() should be
converted to Error API too, at the same time (maybe in the same
patch or in a subsequent patch in the same series)?
Thanks,
/mjt
- [Qemu-devel] [PATCH v2 0/5] Trivial patch about qemu-char, zhanghailiang, 2014/11/03
- [Qemu-devel] [PATCH v2 3/5] spice-qemu-char: fix parameter checks for qemu_chr_parse_* functions, zhanghailiang, 2014/11/03
- [Qemu-devel] [PATCH v2 4/5] qemu-char: convert some open functions to use Error API, zhanghailiang, 2014/11/03
- [Qemu-devel] [PATCH v2 2/5] qemu-char: remove unnecessary in-parameter check for qemu_chr_parse_pipe, zhanghailiang, 2014/11/03
- [Qemu-devel] [PATCH v2 5/5] spice-qemu-char: convert qemu_chr_open_spice_vmc to use Error API, zhanghailiang, 2014/11/03
- Re: [Qemu-devel] [PATCH v2 5/5] spice-qemu-char: convert qemu_chr_open_spice_vmc to use Error API,
Michael Tokarev <=
- [Qemu-devel] [PATCH v2 1/5] qemu-char: fix parameter check for some qemu_chr_parse_* functions, zhanghailiang, 2014/11/03
- Re: [Qemu-devel] [PATCH v2 0/5] Trivial patch about qemu-char, Michael Tokarev, 2014/11/03