[libvirt] [PATCH 7/7] conf: Rework virDomainDeviceDefPostParseCommon()

Bjoern Walk bwalk at linux.ibm.com
Mon Feb 18 08:46:33 UTC 2019


Andrea Bolognani <abologna at redhat.com> [2019-02-15, 12:55PM +0100]:
> +    case VIR_DOMAIN_DEVICE_NONE:
> +        virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
> +                       _("unexpected VIR_DOMAIN_DEVICE_NONE"));

Can we find a better error message here?

> +        break;
> +
> +    case VIR_DOMAIN_DEVICE_LAST:
> +    default:
> +        virReportEnumRangeError(virDomainDeviceType, dev->type);
> +        break;
> +    }
> +
> +    return ret;
>  }
>  
>  
> -- 
> 2.20.1
> 
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
> 

-- 
IBM Systems
Linux on Z & Virtualization Development
--------------------------------------------------
IBM Deutschland Research & Development GmbH
Schönaicher Str. 220, 71032 Böblingen
Phone: +49 7031 16 1819
--------------------------------------------------
Vorsitzende des Aufsichtsrats: Matthias Hartmann
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 902 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190218/63f04fe5/attachment-0001.sig>


More information about the libvir-list mailing list