]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Use switch in qemuDomainDefValidateFeatures()
authorAndrea Bolognani <abologna@redhat.com>
Fri, 2 Feb 2018 15:05:01 +0000 (16:05 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 13 Feb 2018 13:39:53 +0000 (14:39 +0100)
commitce24802a6b1c86f13735ce9533acff15346138a3
tree88dbd3552924c7797971392c553bd14fd5a6f136
parent56ca68c3c8947fb37e97a131af7d0fcd1987e800
qemu: Use switch in qemuDomainDefValidateFeatures()

The compiler can make sure we are handling all features.

While reworking the logic, also change error messages to a more
consistent style.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/libvirt_private.syms
src/qemu/qemu_domain.c