[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 84fc558] virtio-pci error logging

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 84fc558] virtio-pci error logging
Date: Fri, 28 Aug 2009 02:20:03 -0000

From: Gerd Hoffmann <address@hidden>

Use the new qemu_error() function for virtio-blk-pci.

Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]