[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/4] hw/virtio-pci: Replace error_report() by qemu_log_mask(GUEST_
From: |
Laurent Vivier |
Subject: |
[PULL 1/4] hw/virtio-pci: Replace error_report() by qemu_log_mask(GUEST_ERROR) |
Date: |
Mon, 18 Jan 2021 12:32:02 +0100 |
From: Philippe Mathieu-Daudé <philmd@redhat.com>
Replace I/O write error reported with error_report() by
qemu_log_mask(GUEST_ERROR) which allow filtering.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20201210172834.178052-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/virtio/virtio-pci.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index f863f69ede4f..094c36aa3ea3 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -27,6 +27,7 @@
#include "hw/qdev-properties.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
+#include "qemu/log.h"
#include "qemu/module.h"
#include "hw/pci/msi.h"
#include "hw/pci/msix.h"
@@ -365,8 +366,9 @@ static void virtio_ioport_write(void *opaque, uint32_t
addr, uint32_t val)
virtio_queue_set_vector(vdev, vdev->queue_sel, val);
break;
default:
- error_report("%s: unexpected address 0x%x value 0x%x",
- __func__, addr, val);
+ qemu_log_mask(LOG_GUEST_ERROR,
+ "%s: unexpected address 0x%x value 0x%x\n",
+ __func__, addr, val);
break;
}
}
--
2.29.2
- [PULL 0/4] Trivial branch for 6.0 patches, Laurent Vivier, 2021/01/18
- [PULL 0/4] Trivial branch for 6.0 patches, Laurent Vivier, 2021/01/29
- [PULL 1/4] MAINTAINERS: Update 9pfs tree URL, Laurent Vivier, 2021/01/29
- [PULL 3/4] net/slirp.c: Fix spelling error in error message, Laurent Vivier, 2021/01/29
- [PULL 2/4] tcg/tci: Restrict tci_write_reg16() to 64-bit hosts, Laurent Vivier, 2021/01/29
- [PULL 4/4] target/rx: Fix compiler errors for build with sanitizers, Laurent Vivier, 2021/01/29
- Re: [PULL 0/4] Trivial branch for 6.0 patches, Peter Maydell, 2021/01/29