]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Move error reporting into virDomainNetFindIdx
authorJán Tomko <jtomko@redhat.com>
Tue, 1 Apr 2014 13:56:55 +0000 (15:56 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 3 Apr 2014 06:59:36 +0000 (08:59 +0200)
commit2fbae1b2a91793646efc8ad11cf529470d4bc68b
tree893e789e650b8ef2e262800c479aee3086dc50bf
parent8feec44a0920c59b9151b78b53a8b5dfd1b4ffac
Move error reporting into virDomainNetFindIdx

Every caller checked the return value and logged an error
- one if no device with the specified MAC was found,
other if there were multiple devices matching the MAC address
(except for qemuDomainUpdateDeviceConfig which logged the same
 message in both cases).

Move the error reporting into virDomainNetFindIdx, since in both cases,
we couldn't find one single match - it's just the error messages that
differ.
src/conf/domain_conf.c
src/lxc/lxc_driver.c
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c