mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
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>
This commit is contained in:
parent
ac7531ecdc
commit
84fc5589f8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user