aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-pci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-14 10:36:07 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 20:43:33 -0500
commit84fc5589f84946841ba5c932a3521a32e3b00493 (patch)
tree937dc1970002d4e12095f97c3bc8da65bd06413d /hw/virtio-pci.c
parentac7531ecdc8349ffc3a8d85721218df5585e30b6 (diff)
virtio-pci error logging
Use the new qemu_error() function for virtio-blk-pci. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-pci.c')
-rw-r--r--hw/virtio-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index 50765d1ba7..f812ab7a61 100644
--- a/hw/virtio-pci.c
+++ b/hw/virtio-pci.c
@@ -434,7 +434,7 @@ static int virtio_blk_init_pci(PCIDevice *pci_dev)
proxy->class_code = PCI_CLASS_STORAGE_SCSI;
if (!proxy->dinfo) {
- fprintf(stderr, "drive property not set\n");
+ qemu_error("virtio-blk-pci: drive property not set\n");
return -1;
}
vdev = virtio_blk_init(&pci_dev->qdev, proxy->dinfo);