Patchwork [3/4] virtio-pci error logging

login
register
mail settings
Submitter Gerd Hoffmann
Date Aug. 26, 2009, 1:19 p.m.
Message ID <1251292759-32247-4-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/32146/
State Superseded
Headers show

Comments

Gerd Hoffmann - Aug. 26, 2009, 1:19 p.m.
Use the new qemu_error() function for virtio-blk-pci.

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

Patch

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