From 83d35233a9edccdc3a8c17dc3f357d5ccb30ceab Mon Sep 17 00:00:00 2001 From: Hu Tao Date: Wed, 9 Mar 2011 20:09:25 +0800 Subject: [PATCH] Fix a wrong error message thrown to user * src/qemu/qemu_driver.c: qemuDomainUpdateDeviceFlags() is not disk specific as the message suggests --- src/qemu/qemu_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 0f7cbad68d..f26b1ef544 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; }