[libvirt] [PATCH v2 06/21] conf: Improve error handling in virDomainChrDefFormat()