Skip to content

Commit a821858

Browse files
philmdvivier
authored andcommitted
hw/virtio-pci: Replace error_report() by qemu_log_mask(GUEST_ERROR)
Replace I/O write error reported with error_report() by qemu_log_mask(GUEST_ERROR) which allow filtering. Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent e0cbcf1 commit a821858

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hw/virtio/virtio-pci.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "hw/qdev-properties.h"
2828
#include "qapi/error.h"
2929
#include "qemu/error-report.h"
30+
#include "qemu/log.h"
3031
#include "qemu/module.h"
3132
#include "hw/pci/msi.h"
3233
#include "hw/pci/msix.h"
@@ -365,8 +366,9 @@ static void virtio_ioport_write(void *opaque, uint32_t addr, uint32_t val)
365366
virtio_queue_set_vector(vdev, vdev->queue_sel, val);
366367
break;
367368
default:
368-
error_report("%s: unexpected address 0x%x value 0x%x",
369-
__func__, addr, val);
369+
qemu_log_mask(LOG_GUEST_ERROR,
370+
"%s: unexpected address 0x%x value 0x%x\n",
371+
__func__, addr, val);
370372
break;
371373
}
372374
}

0 commit comments

Comments
 (0)