]> git.ipfire.org Git - thirdparty/libvirt.git/commit
error: drop old-style error reporting
authorEric Blake <eblake@redhat.com>
Mon, 28 Nov 2011 23:13:40 +0000 (16:13 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 19 Jan 2012 20:26:04 +0000 (13:26 -0700)
commitc2551bea56d9fcfa4feeca17657c63efaf5d110e
tree8d0ba61cd651c970d14c60d1e8a801b7712afc20
parent9e48c225342320e99d4870e159177dbb3b8844e3
error: drop old-style error reporting

While we still don't want to enable gcc's new -Wformat-literal
warning, I found a rather easy case where the warning could be
reduced, by getting rid of obsolete error-reporting practices.
This is the last place where we were passing the (unused) net
and conn arguments for constructing an error.

* src/util/virterror_internal.h (virErrorMsg): Delete prototype.
(virReportError): Delete macro.
* src/util/virterror.c (virErrorMsg): Make static.
* src/libvirt_private.syms (virterror_internal.h): Drop export.
* src/util/conf.c (virConfError): Convert to macro.
(virConfErrorHelper): New function, and adjust error calls.
* src/xen/xen_hypervisor.c (virXenErrorFunc): Delete.
(xenHypervisorGetSchedulerType)
(xenHypervisorGetSchedulerParameters)
(xenHypervisorSetSchedulerParameters)
(xenHypervisorDomainBlockStats)
(xenHypervisorDomainInterfaceStats)
(xenHypervisorDomainGetOSType)
(xenHypervisorNodeGetCellsFreeMemory, xenHypervisorGetVcpus):
Update callers.
src/libvirt_private.syms
src/util/conf.c
src/util/virterror.c
src/util/virterror_internal.h
src/xen/xen_hypervisor.c