]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't duplicate errors when settings stats period
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 13 Mar 2015 16:05:32 +0000 (17:05 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 17 Mar 2015 11:03:34 +0000 (12:03 +0100)
commit4fca30e0bde012d68e4abed325f7524705f82027
treea3fb48f8a7652fe320a713e1ff51e55d75b0ec05
parent02ce97bca6ff460c02abb76a6ef22e340e37ce8f
qemu: Don't duplicate errors when settings stats period

In order not to leave old error messages set, this patch refactors the
code so the error is reported only when acted upon.  The only such place
already rewrites any error, so cleaning up all the error reporting in
qemuMonitorSetMemoryStatsPeriod() is enough.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_monitor.c