diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 0f7cbad68d71bf5a12d9d468b7b0d0c27ad38703..f26b1ef5445183f4bf598d10485a6158d25adc82 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -4209,8 +4209,8 @@ static int qemuDomainUpdateDeviceFlags(virDomainPtr dom, default: qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("disk device type '%s' cannot be updated"), - virDomainDiskDeviceTypeToString(dev->data.disk->device)); + _("device type '%s' cannot be updated"), + virDomainDeviceTypeToString(dev->type)); break; }