[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 04/31] vfio: Use warn_report() & friends to repo
From: |
Alex Williamson |
Subject: |
Re: [Qemu-devel] [PATCH 04/31] vfio: Use warn_report() & friends to report warnings |
Date: |
Mon, 8 Oct 2018 13:04:27 -0600 |
On Mon, 8 Oct 2018 19:30:58 +0200
Markus Armbruster <address@hidden> wrote:
> The vfio code reports warnings like
>
> error_report(WARN_PREFIX "Could not frobnicate", DEV-NAME);
>
> where WARN_PREFIX is defined so the message comes out as
>
> vfio warning: DEV-NAME: Could not frobnicate
>
> This usage predates the introduction of warn_report() & friends in
> commit 97f40301f1d. It's time to convert to that interface. Since
> these functions already prefix the message with "warning: ", replace
> WARN_PREFIX by VFIO_MSG_PREFIX, so the messages come out like
>
> warning: vfio DEV-NAME: Could not frobnicate
>
> The next commit will replace ERR_PREFIX.
>
> Cc: Alex Williamson <address@hidden>
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
> hw/vfio/pci.c | 14 +++++++-------
> hw/vfio/platform.c | 4 ++--
> include/hw/vfio/vfio-common.h | 2 +-
> 3 files changed, 10 insertions(+), 10 deletions(-)
Acked-by: Alex Williamson <address@hidden>
- Re: [Qemu-devel] [PATCH 14/31] numa: Fix QMP command set-numa-node error handling, (continued)
- [Qemu-devel] [PATCH 25/31] numa: Clean up error reporting in parse_numa(), Markus Armbruster, 2018/10/08
- [Qemu-devel] [PATCH 01/31] Use error_fatal to simplify obvious fatal errors (again), Markus Armbruster, 2018/10/08
- [Qemu-devel] [PATCH 05/31] vfio: Clean up error reporting after previous commit, Markus Armbruster, 2018/10/08
- [Qemu-devel] [PATCH 04/31] vfio: Use warn_report() & friends to report warnings, Markus Armbruster, 2018/10/08
- Re: [Qemu-devel] [PATCH 04/31] vfio: Use warn_report() & friends to report warnings,
Alex Williamson <=
- [Qemu-devel] [PATCH 20/31] vl: Clean up error reporting in machine_set_property(), Markus Armbruster, 2018/10/08
- [Qemu-devel] [PATCH 19/31] vl: Clean up error reporting in parse_add_fd(), Markus Armbruster, 2018/10/08
- [Qemu-devel] [PATCH 12/31] l2tpv3: Improve -netdev/netdev_add/-net/... error reporting, Markus Armbruster, 2018/10/08