• E
    build: consistently use C99 varargs macros · 2e56fb2b
    Eric Blake 提交于
    Prior to this patch, there was an inconsistent mix between GNU and C99.
    
    For consistency, and potential portability to other compilers, stick
    with the C99 vararg macro syntax.
    
    * src/conf/cpu_conf.c (virCPUReportError): Use C99 rather than GNU
      vararg macro syntax.
    * src/conf/domain_conf.c (virDomainReportError): Likewise.
    * src/conf/domain_event.c (eventReportError): Likewise.
    * src/conf/interface_conf.c (virInterfaceReportError): Likewise.
    * src/conf/network_conf.c (virNetworkReportError): Likewise.
    * src/conf/node_device_conf.h (virNodeDeviceReportError): Likewise.
    * src/conf/secret_conf.h (virSecretReportError): Likewise.
    * src/conf/storage_conf.h (virStorageReportError): Likewise.
    * src/esx/esx_device_monitor.c (ESX_ERROR): Use C99 rather than
      GNU vararg macro syntax.
    * src/esx/esx_driver.c (ESX_ERROR): Likewise.
    * src/esx/esx_interface_driver.c (ESX_ERROR): Likewise.
    * src/esx/esx_network_driver.c (ESX_ERROR): Likewise.
    * src/esx/esx_secret_driver.c (ESX_ERROR): Likewise.
    * src/esx/esx_storage_driver.c (ESX_ERROR): Likewise.
    * src/esx/esx_util.c (ESX_ERROR): Likewise.
    * src/esx/esx_vi.c (ESX_VI_ERROR): Likewise.
    * src/esx/esx_vi_methods.c (ESX_VI_ERROR): Likewise.
    * src/esx/esx_vi_types.c (ESX_VI_ERROR): Likewise.
    * src/esx/esx_vmx.c (ESX_ERROR): Likewise.
    * src/util/hostusb.c (usbReportError): Use C99 rather than GNU
      vararg macro syntax.
    * src/util/json.c (virJSONError): Likewise.
    * src/util/macvtap.c (ReportError): Likewise.
    * src/util/pci.c (pciReportError): Likewise.
    * src/util/stats_linux.c (virStatsError): Likewise.
    * src/util/util.c (virUtilError): Likewise.
    * src/util/xml.c (virXMLError): Likewise.
    * src/xen/proxy_internal.c (virProxyError): Use C99 rather than
      GNU vararg macro syntax.
    * src/xen/sexpr.c (virSexprError): Likewise.
    * src/xen/xen_driver.c (xenUnifiedError): Likewise.
    * src/xen/xen_hypervisor.c (virXenError): Likewise.
    * src/xen/xen_inotify.c (virXenInotifyError): Likewise.
    * src/xen/xend_internal.c (virXendError): Likewise.
    * src/xen/xm_internal.c (xenXMError): Likewise.
    * src/xen/xs_internal.c (virXenStoreError): Likewise.
    * src/cpu/cpu.h (virCPUReportError): Use C99 rather than GNU
      vararg macro syntax.
    * src/datatypes.c (virLibConnError): Likewise.
    * src/interface/netcf_driver.c (interfaceReportError): Likewise.
    * src/libvirt.c (virLibStreamError): Likewise.
    * src/lxc/lxc_conf.h (lxcError): Likewise.
    * src/network/bridge_driver.c (networkReportError): Likewise.
    * src/nodeinfo.c (nodeReportError): Likewise.
    * src/opennebula/one_conf.h (oneError): Likewise.
    * src/openvz/openvz_conf.h (openvzError): Likewise.
    * src/phyp/phyp_driver.c (PHYP_ERROR): Likewise.
    * src/qemu/qemu_conf.h (qemuReportError): Likewise.
    * src/remote/remote_driver.c (errorf): Likewise.
    * src/security/security_driver.h (virSecurityReportError): Likewise.
    * src/test/test_driver.c (testError): Likewise.
    * src/uml/uml_conf.h (umlReportError): Likewise.
    * src/vbox/vbox_driver.c (vboxError): Likewise.
    * src/vbox/vbox_tmpl.c (vboxError): Likewise.
    2e56fb2b
test_driver.c 149.0 KB