[libvirt] [PATCH] Fix a wrong error message threw to user.

Daniel Veillard veillard at redhat.com
Wed Mar 9 12:15:40 UTC 2011


On Wed, Mar 09, 2011 at 03:43:44PM +0800, Hu Tao wrote:
> ---
>  src/qemu/qemu_driver.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index 0f7cbad..f26b1ef 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;
>      }

  Okay, makes sense, ACK, and pushed,

   thanks !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list