From 84fc5589f84946841ba5c932a3521a32e3b00493 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 14 Aug 2009 10:36:07 +0200 Subject: virtio-pci error logging Use the new qemu_error() function for virtio-blk-pci. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/virtio-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/virtio-pci.c') diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 50765d1..f812ab7 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); -- cgit v1.1