qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 3/4] virtio-pci error logging


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH 3/4] virtio-pci error logging
Date: Fri, 14 Aug 2009 10:36:07 +0200

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

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 hw/virtio-pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index 71c3868..6cf79bc 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);
-- 
1.6.2.5





reply via email to

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