]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: consistently use C99 varargs macros
authorEric Blake <eblake@redhat.com>
Mon, 1 Mar 2010 23:38:28 +0000 (16:38 -0700)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 8 Mar 2010 12:32:27 +0000 (13:32 +0100)
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.

51 files changed:
src/conf/cpu_conf.c
src/conf/domain_conf.c
src/conf/domain_event.c
src/conf/interface_conf.c
src/conf/network_conf.c
src/conf/node_device_conf.h
src/conf/secret_conf.h
src/conf/storage_conf.h
src/cpu/cpu.h
src/datatypes.c
src/esx/esx_device_monitor.c
src/esx/esx_driver.c
src/esx/esx_interface_driver.c
src/esx/esx_network_driver.c
src/esx/esx_secret_driver.c
src/esx/esx_storage_driver.c
src/esx/esx_util.c
src/esx/esx_vi.c
src/esx/esx_vi_methods.c
src/esx/esx_vi_types.c
src/esx/esx_vmx.c
src/interface/netcf_driver.c
src/libvirt.c
src/lxc/lxc_conf.h
src/network/bridge_driver.c
src/nodeinfo.c
src/opennebula/one_conf.h
src/openvz/openvz_conf.h
src/phyp/phyp_driver.c
src/qemu/qemu_conf.h
src/remote/remote_driver.c
src/security/security_driver.h
src/test/test_driver.c
src/uml/uml_conf.h
src/util/hostusb.c
src/util/json.c
src/util/macvtap.c
src/util/pci.c
src/util/stats_linux.c
src/util/util.c
src/util/xml.c
src/vbox/vbox_driver.c
src/vbox/vbox_tmpl.c
src/xen/proxy_internal.c
src/xen/sexpr.c
src/xen/xen_driver.c
src/xen/xen_hypervisor.c
src/xen/xen_inotify.c
src/xen/xend_internal.c
src/xen/xm_internal.c
src/xen/xs_internal.c

index ed83188d81b4fa15b33ae9e7119b02e09e59c19f..612e376393c43ceb4bfa7cd3e6af6ad281ae8738 100644 (file)
@@ -31,9 +31,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_CPU
 
-#define virCPUReportError(code, fmt...)                           \
+#define virCPUReportError(code, ...)                              \
     virReportErrorHelper(NULL, VIR_FROM_CPU, code, __FILE__,      \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 VIR_ENUM_IMPL(virCPUMatch, VIR_CPU_MATCH_LAST,
               "minimum",
index df1ec18e2fb38faebdcbaa73b45fa3ba4ccd2b60..96ba0b013d6d8282bf664e236a4a5042a8db0871 100644 (file)
@@ -238,9 +238,9 @@ VIR_ENUM_IMPL(virDomainClockOffset, VIR_DOMAIN_CLOCK_OFFSET_LAST,
               "variable",
               "timezone");
 
-#define virDomainReportError(code, fmt...)                           \
+#define virDomainReportError(code, ...)                              \
     virReportErrorHelper(NULL, VIR_FROM_DOMAIN, code, __FILE__,      \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 #ifndef PROXY
 
index b474b1c6c11a4ab2961ebe4c870f9019a899b4a1..e791cabe61464021f3ad799edb4725dc5134a581 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * domain_event.c: domain event queue processing helpers
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2008 VirtualIron
  *
  * This library is free software; you can redistribute it and/or
@@ -30,9 +31,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_NONE
 
-#define eventReportError(conn, code, fmt...)                        \
+#define eventReportError(conn, code, ...)                           \
     virReportErrorHelper(conn, VIR_FROM_THIS, code, __FILE__,       \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 
 /**
index f60b36a9d09cf2167bc89da84eda83bd5fafce24..30d07100c273502274bdea8716b1fa27f27cc053 100644 (file)
@@ -45,9 +45,9 @@ static int
 virInterfaceDefDevFormat(virBufferPtr buf,
                          const virInterfaceDefPtr def, int level);
 
-#define virInterfaceReportError(code, fmt...)                           \
+#define virInterfaceReportError(code, ...)                              \
     virReportErrorHelper(NULL, VIR_FROM_INTERFACE, code, __FILE__,      \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 static
 void virInterfaceIpDefFree(virInterfaceIpDefPtr def) {
index 6d3c3c06f22aa02f880359e9dd741aff267497c3..39ebd62f99b88dcd5549c47fd761f73eb1f3bd31 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * network_conf.c: network XML handling
  *
- * Copyright (C) 2006-2009 Red Hat, Inc.
+ * Copyright (C) 2006-2010 Red Hat, Inc.
  * Copyright (C) 2006-2008 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -53,9 +53,9 @@ VIR_ENUM_IMPL(virNetworkForward,
               VIR_NETWORK_FORWARD_LAST,
               "none", "nat", "route" )
 
-#define virNetworkReportError(code, fmt...)                             \
+#define virNetworkReportError(code, ...)                                \
     virReportErrorHelper(NULL, VIR_FROM_NETWORK, code, __FILE__,        \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 virNetworkObjPtr virNetworkFindByUUID(const virNetworkObjListPtr nets,
                                       const unsigned char *uuid)
index 3a5432c8190ab23d27758c1f8b74f758b42b4b04..cbaad9bd1fd2478051041593aa6bd81313b53119 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * node_device_conf.h: config handling for node devices
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2008 Virtual Iron Software, Inc.
  * Copyright (C) 2008 David F. Lively
  *
@@ -217,9 +218,9 @@ struct _virDeviceMonitorState {
     void *privateData;                 /* driver-specific private data */
 };
 
-#define virNodeDeviceReportError(code, fmt...)                          \
+#define virNodeDeviceReportError(code, ...)                             \
     virReportErrorHelper(NULL, VIR_FROM_NODEDEV, code, __FILE__,       \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 int virNodeDeviceHasCap(const virNodeDeviceObjPtr dev, const char *cap);
 
index da00920e734ebddc0d8c10d0dc2082098285761b..afcf8f188d1d598ab2a9023892e86996be59fe39 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * secret_conf.h: internal <secret> XML handling API
  *
- * Copyright (C) 2009 Red Hat, Inc.
+ * Copyright (C) 2009-2010 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -26,9 +26,9 @@
 #include "internal.h"
 #include "util.h"
 
-#define virSecretReportError(code, fmt...)                      \
+#define virSecretReportError(code, ...)                         \
     virReportErrorHelper(NULL, VIR_FROM_SECRET, code, __FILE__, \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 VIR_ENUM_DECL(virSecretUsageType)
 
index c64398497bfe715a28a26a8188b18656d4725ba0..5441c8e07d5bac271c90c066724bfaefc9a70976 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * storage_conf.h: config handling for storage driver
  *
- * Copyright (C) 2006-2008 Red Hat, Inc.
+ * Copyright (C) 2006-2008, 2010 Red Hat, Inc.
  * Copyright (C) 2006-2008 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -318,9 +318,9 @@ static inline int virStoragePoolObjIsActive(virStoragePoolObjPtr pool) {
     return pool->active;
 }
 
-#define virStorageReportError(code, fmt...)                             \
+#define virStorageReportError(code, ...)                                \
     virReportErrorHelper(NULL, VIR_FROM_STORAGE, code, __FILE__,        \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 int virStoragePoolLoadAllConfigs(virStoragePoolObjListPtr pools,
                                  const char *configDir,
index c8d961db4ea2f04c4d04851390b359522faeb936..4287ca3b584da02728b0872ec92937cc05ceef27 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * cpu.h: internal functions for CPU manipulation
  *
- * Copyright (C) 2009--2010 Red Hat, Inc.
+ * Copyright (C) 2009-2010 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -30,9 +30,9 @@
 #include "cpu_x86_data.h"
 
 
-#define virCPUReportError(code, fmt...)                           \
+#define virCPUReportError(code, ...)                              \
     virReportErrorHelper(NULL, VIR_FROM_CPU, code, __FILE__,      \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 
 union cpuData {
index fa342e000985c505ec472ff788072a8dbff3c729..01601d8caf2a4bc826df970e8f174b245b4e49ab 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * datatypes.h: management of structs for public data types
  *
- * Copyright (C) 2006-2009 Red Hat, Inc.
+ * Copyright (C) 2006-2010 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -31,9 +31,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_NONE
 
-#define virLibConnError(conn, code, fmt...)                       \
+#define virLibConnError(conn, code, ...)                          \
     virReportErrorHelper(conn, VIR_FROM_THIS, code, __FILE__,     \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /************************************************************************
  *                                                                     *
index de67ebb98613e06fce61b949284708e5537a5da8..78de0e0cfb9cce0e5a5250ebf8e182f8e969a0e9 100644 (file)
@@ -3,6 +3,7 @@
  * esx_device_monitor.c: device monitor methods for managing VMware ESX
  *                       host devices
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -37,9 +38,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_ERROR(conn, code, fmt...)                                         \
+#define ESX_ERROR(conn, code, ...)                                            \
     virReportErrorHelper(conn, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,    \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 
 
index 517cce48ab49b4e0ed0e7af6ae280e6c1b583b31..0afbda47de8876595225a04db7f3ac12d9b84c96 100644 (file)
@@ -47,9 +47,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_ERROR(code, fmt...)                                               \
+#define ESX_ERROR(code, ...)                                                  \
     virReportErrorHelper(NULL, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,    \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 static int esxDomainGetMaxVcpus(virDomainPtr domain);
 
index 6e9d22476e1fb0e979604e6a770f070880b7ff00..e3739f7e9df5642d9432be0da40243346969e5fe 100644 (file)
@@ -3,6 +3,7 @@
  * esx_interface_driver.h: interface driver methods for managing VMware ESX
  *                         host interfaces
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -37,9 +38,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_ERROR(conn, code, fmt...)                                         \
+#define ESX_ERROR(conn, code, ...)                                            \
     virReportErrorHelper(conn, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,    \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 
 
index 1eeae444c925f60981477048d11e33a4a6f91507..dacc95bf3d2f575bf39778cbe96c18ee61bf202e 100644 (file)
@@ -3,6 +3,7 @@
  * esx_network_driver.c: network driver methods for managing VMware ESX
  *                       host networks
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -37,9 +38,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_ERROR(conn, code, fmt...)                                         \
+#define ESX_ERROR(conn, code, ...)                                            \
     virReportErrorHelper(conn, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,    \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 
 
index 7b24d0c519427fc6689e05d399b3631d80f084ef..07a178fa1b432e85f4bc47054b660bad54ed20b9 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * esx_secret_driver.c: secret driver methods for VMware ESX secret manipulation
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -36,9 +37,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_ERROR(conn, code, fmt...)                                         \
+#define ESX_ERROR(conn, code, ...)                                            \
     virReportErrorHelper(conn, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,    \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 
 
index d09831a147ce60277518d7d48d9a9b42c3c301ca..b920f3b3c0c3ffea2611d1ca3a2c3b658d0c6af8 100644 (file)
@@ -3,6 +3,7 @@
  * esx_storage_driver.c: storage driver methods for managing VMware ESX
  *                       host storage
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -37,9 +38,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_ERROR(conn, code, fmt...)                                         \
+#define ESX_ERROR(conn, code, ...)                                            \
     virReportErrorHelper(conn, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,    \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 
 
index 5da8e97ca3514cf8ae06c4fe7ce53f493df0d2ae..dcbd86c25c6b277752692cf230c5def30d872cc5 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * esx_util.c: utility methods for the VMware ESX driver
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
  * Copyright (C) 2009 Maximilian Wilhelm <max@rfc2324.org>
  *
@@ -37,9 +38,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_ERROR(code, fmt...)                                              \
+#define ESX_ERROR(code, ...)                                                 \
     virReportErrorHelper(NULL, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,   \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 /* AI_ADDRCONFIG is missing on some systems. */
 #ifndef AI_ADDRCONFIG
index 9edfcb4d53eafe4976ac08032c8fee9b39b31779..8c8f1bc726b3030698638b3ac672edb3471537e8 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * esx_vi.c: client for the VMware VI API 2.5 to manage ESX hosts
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -38,9 +39,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_VI_ERROR(code, fmt...)                                            \
+#define ESX_VI_ERROR(code, ...)                                               \
     virReportErrorHelper(NULL, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,    \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 #define ESX_VI__SOAP__REQUEST_HEADER                                          \
     "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"                            \
index d3beb07fa364f1c34b41a92308297a6eeef04f29..05c7b4269c1f5165547303741cae2896c18cf512 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * esx_vi_methods.c: client for the VMware VI API 2.5 to manage ESX hosts
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -32,9 +33,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_VI_ERROR(code, fmt...)                                            \
+#define ESX_VI_ERROR(code, ...)                                               \
     virReportErrorHelper(NULL, VIR_FROM_ESX, code, __FILE__,  __FUNCTION__,   \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 #define ESX_VI__SOAP__REQUEST_HEADER                                          \
     "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"                            \
index c32bf33dceb466dab3a7c57c1dce85815af4d7fe..958b90133638a3fff54753480b2a886136dbd391 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * esx_vi_types.c: client for the VMware VI API 2.5 to manage ESX hosts
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -37,9 +38,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_VI_ERROR(code, fmt...)                                            \
+#define ESX_VI_ERROR(code, ...)                                               \
     virReportErrorHelper(NULL, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,    \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 
 
index 2651ccbb3b5c753b41d931472080cea4ada655bd..ba4c608180bda91bb9f4af214a361bb182a887d7 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * esx_vmx.c: VMX related methods for the VMware ESX driver
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -420,9 +421,9 @@ def->parallels[0]...
 
 #define VIR_FROM_THIS VIR_FROM_ESX
 
-#define ESX_ERROR(code, fmt...)                                               \
+#define ESX_ERROR(code, ...)                                                  \
     virReportErrorHelper(NULL, VIR_FROM_ESX, code, __FILE__, __FUNCTION__,    \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 
 
index 7f4d43d231a00b389f58c46cd590316781488a31..e44156eb83152a36adb01aee51a8841f2b52bb97 100644 (file)
@@ -2,7 +2,7 @@
  * interface_driver.c: backend driver methods to handle physical
  *                     interface configuration using the netcf library.
  *
- * Copyright (C) 2006-2009 Red Hat, Inc.
+ * Copyright (C) 2006-2010 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -33,9 +33,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_INTERFACE
 
-#define interfaceReportError(conn, dom, net, code, fmt...)            \
+#define interfaceReportError(conn, dom, net, code, ...)               \
     virReportErrorHelper(conn, VIR_FROM_THIS, code, __FILE__,         \
-                           __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /* Main driver state */
 struct interface_driver
index d9242bce9854d1555f1fc2ccc147f3ba09d0de48..7f7a28cbcd7a1021cd82eda39d83231a003794db 100644 (file)
@@ -2,7 +2,7 @@
  * libvirt.c: Main interfaces for the libvirt library to handle virtualization
  *           domains from a process running in domain 0
  *
- * Copyright (C) 2005,2006,2008,2009 Red Hat, Inc.
+ * Copyright (C) 2005-2006, 2008-2010 Red Hat, Inc.
  *
  * See COPYING.LIB for the License of this software
  *
@@ -618,9 +618,9 @@ virLibNodeDeviceError(virNodeDevicePtr dev, virErrorNumber error,
                     errmsg, info, NULL, 0, 0, errmsg, info);
 }
 
-#define virLibStreamError(conn, code, fmt...)                   \
+#define virLibStreamError(conn, code, ...)                      \
     virReportErrorHelper(conn, VIR_FROM_NONE, code, __FILE__,   \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /**
  * virLibSecretError:
index d0c5bb1328ba16e1a531ebe92c13b489d8a1989b..5cdf673226855d3788afb8e441e3316fe976b15e 100644 (file)
@@ -1,4 +1,5 @@
 /*
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright IBM Corp. 2008
  *
  * lxc_conf.h: header file for linux container config functions
@@ -63,8 +64,8 @@ struct __lxc_driver {
 int lxcLoadDriverConfig(lxc_driver_t *driver);
 virCapsPtr lxcCapsInit(void);
 
-#define lxcError(code, fmt...)                                          \
+#define lxcError(code, ...)                                             \
     virReportErrorHelper(NULL, VIR_FROM_LXC, code, __FILE__,            \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 #endif /* LXC_CONF_H */
index 44537074c2fe676d4d1bcc3e85975d3d41bf9050..83ab00eb2be96e71555f7cad2cb337275d19493d 100644 (file)
@@ -63,9 +63,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_NETWORK
 
-#define networkReportError(code, fmt...)                                \
+#define networkReportError(code, ...)                                   \
     virReportErrorHelper(NULL, VIR_FROM_NETWORK, code, __FILE__,        \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /* Main driver state */
 struct network_driver {
index 2d446091997956611c82635ac362f74827838fe5..4648be1f7d8213299aa0ea2e9b56988d953eb502 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * nodeinfo.c: Helper routines for OS specific node information
  *
- * Copyright (C) 2006, 2007, 2008 Red Hat, Inc.
+ * Copyright (C) 2006, 2007, 2008, 2010 Red Hat, Inc.
  * Copyright (C) 2006 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -49,9 +49,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_NONE
 
-#define nodeReportError(conn, code, fmt...)                              \
+#define nodeReportError(conn, code, ...)                                \
     virReportErrorHelper(conn, VIR_FROM_NONE, code, __FILE__,           \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 #ifdef __linux__
 #define CPUINFO_PATH "/proc/cpuinfo"
index bb01026234e922b16320124f60aa958761b2d3ff..5f24e2b930f95f319a3792d66af9f3cae73352bb 100644 (file)
@@ -1,5 +1,7 @@
 /*----------------------------------------------------------------------------------*/
-/* Copyright 2002-2009, Distributed Systems Architecture Group, Universidad
+/*
+ * Copyright (C) 2010 Red Hat, Inc.
+ * Copyright 2002-2009, Distributed Systems Architecture Group, Universidad
  * Complutense de Madrid (dsa-research.org)
  *
  * This library is free software; you can redistribute it and/or
@@ -45,8 +47,8 @@ int oneSubmitVM(virConnectPtr conn ,one_driver_t* driver, virDomainObjPtr  vm);
 
 char* xmlOneTemplate(virDomainDefPtr def);
 
-#define oneError(conn, dom, code, fmt...)                               \
+#define oneError(conn, dom, code, ...)                                  \
     virReportErrorHelper(conn, VIR_FROM_ONE, code, __FILE__,            \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 #endif /* ONE_CONF_H */
index c863a2a3f6961f82bf961e23650fefa9b259b7d6..fc5966b1d469bea91559153b60dfa0d9ad158082 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * openvz_config.h: config information for OpenVZ VPSs
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2006, 2007 Binary Karma.
  * Copyright (C) 2006 Shuveb Hussain
  * Copyright (C) 2007 Anoop Joe Cyriac
@@ -34,9 +35,9 @@
 
 enum { OPENVZ_WARN, OPENVZ_ERR };
 
-#define openvzError(conn, code, fmt...)                                      \
+#define openvzError(conn, code, ...)                                       \
         virReportErrorHelper(conn, VIR_FROM_OPENVZ, code, __FILE__,        \
-                               __FUNCTION__, __LINE__, fmt)
+                             __FUNCTION__, __LINE__, __VA_ARGS__)
 
 
 /* OpenVZ commands - Replace with wrapper scripts later? */
index d3c8c19c05dec1832eb8686d8d6a48b2a2d4f657..32c0a7a480a03d83d01b5c0c2d691b9b5f298ec7 100644 (file)
@@ -1,5 +1,6 @@
 
 /*
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright IBM Corp. 2009
  *
  * phyp_driver.c: ssh layer to access Power Hypervisors
@@ -61,9 +62,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_PHYP
 
-#define PHYP_ERROR(conn, code, fmt...)                                        \
+#define PHYP_ERROR(conn, code, ...)                                           \
     virReportErrorHelper(conn, VIR_FROM_PHYP, code, __FILE__, __FUNCTION__,   \
-                         __LINE__, fmt)
+                         __LINE__, __VA_ARGS__)
 
 /*
  * URI: phyp://user@[hmc|ivm]/managed_system
index 1821252d6232266a71ade8a066ba4de438c8a609..1134f62cbd585baf7e26464702aee8b5b243042b 100644 (file)
@@ -161,9 +161,9 @@ typedef qemuDomainPCIAddressSet *qemuDomainPCIAddressSetPtr;
 #define QEMU_DRIVE_HOST_PREFIX "drive-"
 #define QEMU_VIRTIO_SERIAL_PREFIX "virtio-serial"
 
-#define qemuReportError(code, fmt...)                                   \
+#define qemuReportError(code, ...)                                      \
     virReportErrorHelper(NULL, VIR_FROM_QEMU, code, __FILE__,           \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 
 int qemudLoadDriverConfig(struct qemud_driver *driver,
index b7b2e09fcb321faedb42e2cb8ba956b93d4ade48..fc25d1d746ad0ab0cc305f12ff06ffebe5228ec5 100644 (file)
@@ -242,9 +242,9 @@ static int remoteAuthPolkit (virConnectPtr conn, struct private_data *priv, int
 #define error(conn, code, info)                                 \
     virReportErrorHelper(conn, VIR_FROM_QEMU, code, __FILE__,   \
                          __FUNCTION__, __LINE__, "%s", info)
-#define errorf(conn, code, fmt...)                              \
+#define errorf(conn, code, ...)                                 \
     virReportErrorHelper(conn, VIR_FROM_QEMU, code, __FILE__,   \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 static virDomainPtr get_nonnull_domain (virConnectPtr conn, remote_nonnull_domain domain);
 static virNetworkPtr get_nonnull_network (virConnectPtr conn, remote_nonnull_network network);
index 15671b3601399624010d9180f6e285ad3b852d60..1b434c434fdbb833fca9a3467780fa463dee520a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2008 Red Hat, Inc.
+ * Copyright (C) 2008, 2010 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -88,9 +88,9 @@ int virSecurityDriverStartup(virSecurityDriverPtr *drv,
 int
 virSecurityDriverVerify(virDomainDefPtr def);
 
-#define virSecurityReportError(code, fmt...)                        \
+#define virSecurityReportError(code, ...)                           \
     virReportErrorHelper(NULL, VIR_FROM_SECURITY, code, __FILE__,   \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /* Helpers */
 void virSecurityDriverInit(virSecurityDriverPtr drv);
index 5807288a7ad0a4d41c85dfa6d74bf7b0776012bb..79608127994e5c079d1048d7a203da973f6fe384 100644 (file)
@@ -115,9 +115,9 @@ static const virNodeInfo defaultNodeInfo = {
 };
 
 
-#define testError(conn, code, fmt...)                               \
+#define testError(conn, code, ...)                                \
         virReportErrorHelper(conn, VIR_FROM_TEST, code, __FILE__, \
-                               __FUNCTION__, __LINE__, fmt)
+                               __FUNCTION__, __LINE__, __VA_ARGS__)
 
 static int testClose(virConnectPtr conn);
 static void testDomainEventFlush(int timer, void *opaque);
index c319396f5b4c8dbc47ee0b9ef7a2e3454a9f24c9..f3967ee50de94ea360c6a3ccdf9bcad52ea55e30 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * config.h: VM configuration management
  *
- * Copyright (C) 2006, 2007 Red Hat, Inc.
+ * Copyright (C) 2006, 2007, 2010 Red Hat, Inc.
  * Copyright (C) 2006 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -62,9 +62,9 @@ struct uml_driver {
 };
 
 
-#define umlReportError(conn, dom, net, code, fmt...)                    \
+#define umlReportError(conn, dom, net, code, ...)                       \
     virReportErrorHelper(conn, VIR_FROM_UML, code, __FILE__,            \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 virCapsPtr  umlCapsInit               (void);
 
index afba325951e3981cf8b543db0420ba3fba20ee36..78b601f4700dee25947f0836b42a573ea08ef115 100644 (file)
@@ -54,9 +54,9 @@ struct _usbDevice {
 /* For virReportOOMError()  and virReportSystemError() */
 #define VIR_FROM_THIS VIR_FROM_NONE
 
-#define usbReportError(code, fmt...)                           \
+#define usbReportError(code, ...)                              \
     virReportErrorHelper(NULL, VIR_FROM_NONE, code, __FILE__,  \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 static int usbSysReadFile(const char *f_name, const char *d_name,
                           int base, unsigned *value)
index 3abff581f5189ef5518d5f279db227718720dd20..e388287d9729b4723c24a3241d05a6e94d70938b 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * json.c: JSON object parsing/formatting
  *
- * Copyright (C) 2009 Daniel P. Berrange
  * Copyright (C) 2009-2010 Red Hat, Inc.
+ * Copyright (C) 2009 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -36,9 +36,9 @@
 
 /* XXX fixme */
 #define VIR_FROM_THIS VIR_FROM_NONE
-#define virJSONError(code, fmt...)                                      \
+#define virJSONError(code, ...)                                         \
     virReportErrorHelper(NULL, VIR_FROM_NONE, code, __FILE__,           \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 
 typedef struct _virJSONParserState virJSONParserState;
index 8c29588961aee358c4dab0f94667f9ef3ea38a58..3b526ce4ef41f37b1976760845eeb63e306fcd17 100644 (file)
@@ -1,4 +1,5 @@
 /*
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2010 IBM Corporation
  *
  * This library is free software; you can redistribute it and/or
@@ -48,9 +49,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_NET
 
-#define ReportError(conn, code, fmt...)                                      \
+#define ReportError(conn, code, ...)                                      \
         virReportErrorHelper(conn, VIR_FROM_NET, code, __FILE__,          \
-                               __FUNCTION__, __LINE__, fmt)
+                               __FUNCTION__, __LINE__, __VA_ARGS__)
 
 #define MACVTAP_NAME_PREFIX    "macvtap"
 #define MACVTAP_NAME_PATTERN   "macvtap%d"
index b812241af8008259670e57431bce4aa106aaa690..c6b20721186ce697bf3c14c92125c8a501f95d35 100644 (file)
@@ -75,9 +75,9 @@ struct _pciDeviceList {
 /* For virReportOOMError()  and virReportSystemError() */
 #define VIR_FROM_THIS VIR_FROM_NONE
 
-#define pciReportError(code, fmt...)                           \
+#define pciReportError(code, ...)                              \
     virReportErrorHelper(NULL, VIR_FROM_NONE, code, __FILE__,  \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /* Specifications referenced in comments:
  *  PCI30  - PCI Local Bus Specification 3.0
index 25f8d085c077eb0c5fc817dfeb9c2864814bf072..feb55899cbcda5df0643d5d7d5a6e3a828c673b7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Linux block and network stats.
  *
- * Copyright (C) 2007-2009 Red Hat, Inc.
+ * Copyright (C) 2007-2010 Red Hat, Inc.
  *
  * See COPYING.LIB for the License of this software
  *
@@ -28,9 +28,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_STATS_LINUX
 
-#define virStatsError(code, fmt...)                            \
+#define virStatsError(code, ...)                               \
     virReportErrorHelper(NULL, VIR_FROM_THIS, code, __FILE__,  \
-                         __FUNCTION__, __LINE__, fmt)
+                         __FUNCTION__, __LINE__, __VA_ARGS__)
 
 
 /*-------------------- interface stats --------------------*/
index 7a3a3c42330916465720e409ae3dc79de7bd2f53..360cc53ba7306ca1df3185868a4c84660090b177 100644 (file)
@@ -85,9 +85,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_NONE
 
-#define virUtilError(code, fmt...)                                         \
+#define virUtilError(code, ...)                                            \
         virReportErrorHelper(NULL, VIR_FROM_NONE, code, __FILE__,          \
-                             __FUNCTION__, __LINE__, fmt)
+                             __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /* Like read(), but restarts after EINTR */
 int saferead(int fd, void *buf, size_t count)
index 14c83453b1eee81e9af25550e26dff32dd7091f3..9129d78e198051dda2f3098c6e9f05ed94154bd1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * xml.c: XML based interfaces for the libvir library
  *
- * Copyright (C) 2005, 2007-2009 Red Hat, Inc.
+ * Copyright (C) 2005, 2007-2010 Red Hat, Inc.
  *
  * See COPYING.LIB for the License of this software
  *
@@ -25,9 +25,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_XML
 
-#define virXMLError(code, fmt...)                                          \
+#define virXMLError(code, ...)                                             \
         virReportErrorHelper(NULL, VIR_FROM_XML, code, __FILE__,           \
-                             __FUNCTION__, __LINE__, fmt)
+                             __FUNCTION__, __LINE__, __VA_ARGS__)
 
 
 /************************************************************************
index ef3eb4bcb7d3427def5b8b3a7221876fdb7c9878..632cb76b7b16cacb5f1cbeca2e4f6787bcaebf6c 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 /*
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2008-2009 Sun Microsystems, Inc.
  *
  * This file is part of a free software library; you can redistribute
@@ -57,9 +58,9 @@ static virDriver vboxDriverDummy;
 
 #define VIR_FROM_THIS VIR_FROM_VBOX
 
-#define vboxError(conn, code, fmt...) \
+#define vboxError(conn, code, ...) \
         virReportErrorHelper(conn, VIR_FROM_VBOX, code, __FILE__, \
-                            __FUNCTION__, __LINE__, fmt)
+                             __FUNCTION__, __LINE__, __VA_ARGS__)
 
 int vboxRegister(void) {
     virDriverPtr        driver;
index a649df8228d0a637e53e84613727624c9b9e2280..6ebf50c6b05016f39079471942897d3f847f7827 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 /*
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2008-2009 Sun Microsystems, Inc.
  *
  * This file is part of a free software library; you can redistribute
@@ -123,9 +124,9 @@ typedef IMediumAttachment IHardDiskAttachment;
 
 #endif /* VBOX_API_VERSION >= 3001 */
 
-#define vboxError(conn, code, fmt...) \
+#define vboxError(conn, code, ...) \
         virReportErrorHelper(conn, VIR_FROM_VBOX, code, __FILE__, \
-                            __FUNCTION__, __LINE__, fmt)
+                             __FUNCTION__, __LINE__, __VA_ARGS__)
 
 #define DEBUGPRUnichar(msg, strUtf16) \
 if (strUtf16) {\
index be79d5695558e43f837da9134612013f878b50a3..0c00abca9533d180925f5f4f98657210e39f2115 100644 (file)
@@ -92,9 +92,9 @@ struct xenUnifiedDriver xenProxyDriver = {
  *                                                                     *
  ************************************************************************/
 
-#define virProxyError(conn, code, fmt...)                                    \
+#define virProxyError(conn, code, ...)                                     \
         virReportErrorHelper(conn, VIR_FROM_PROXY, code, __FILE__,         \
-                               __FUNCTION__, __LINE__, fmt)
+                               __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /************************************************************************
  *                                                                     *
index 840d3e5fab044c5201847b06cd786d4f454ad4a1..7e370db35e007532d3e59bd5e5eed27847f75713 100644 (file)
@@ -1,9 +1,8 @@
 /*
  * sexpr.c : S-Expression routines to communicate with the Xen Daemon
  *
- * Copyright (C) 2005
- *
- *      Anthony Liguori <aliguori@us.ibm.com>
+ * Copyright (C) 2010 Red Hat, Inc.
+ * Copyright (C) 2005 Anthony Liguori <aliguori@us.ibm.com>
  *
  *  This file is subject to the terms and conditions of the GNU Lesser General
  *  Public License. See the file COPYING.LIB in the main directory of this
@@ -25,9 +24,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_SEXPR
 
-#define virSexprError(code, fmt...)                                          \
+#define virSexprError(code, ...)                                           \
         virReportErrorHelper(NULL, VIR_FROM_SEXPR, code, __FILE__,         \
-                               __FUNCTION__, __LINE__, fmt)
+                               __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /**
  * sexpr_new:
index 0eb39275fce4dde1984fac05c198208f04d74de1..a798e413b04712da73f3ead93c2220331d65c2f1 100644 (file)
@@ -72,9 +72,9 @@ static struct xenUnifiedDriver const * const drivers[XEN_UNIFIED_NR_DRIVERS] = {
 
 static int inside_daemon;
 
-#define xenUnifiedError(conn, code, fmt...)                                  \
+#define xenUnifiedError(conn, code, ...)                                   \
         virReportErrorHelper(conn, VIR_FROM_XEN, code, __FILE__,           \
-                               __FUNCTION__, __LINE__, fmt)
+                               __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /**
  * xenNumaInit:
index ab8fbc38b3d2b67e82d6501f65d0c59c3127a0d7..fe49ac201385261014c2ef8a5f38f464c87d85b6 100644 (file)
@@ -803,10 +803,10 @@ struct xenUnifiedDriver xenHypervisorDriver = {
 };
 #endif /* !PROXY */
 
-#define virXenError(conn, code, fmt...)                                      \
-        if (in_init == 0)                                                    \
+#define virXenError(conn, code, ...)                                       \
+        if (in_init == 0)                                                  \
             virReportErrorHelper(conn, VIR_FROM_XEN, code, __FILE__,       \
-                                   __FUNCTION__, __LINE__, fmt)
+                                 __FUNCTION__, __LINE__, __VA_ARGS__)
 
 #ifndef PROXY
 
index de91dc66da3ac59b8317e51a9f1551a0ab8aef78..ee24bc4aeed9f4f6d95ab08d4543da167d06ca68 100644 (file)
@@ -4,6 +4,7 @@
  *                /etc/xen
  *                /var/lib/xend/domains
  *
+ * Copyright (C) 2010 Red Hat, Inc.
  * Copyright (C) 2008 VirtualIron
  *
  * This library is free software; you can redistribute it and/or
@@ -43,9 +44,9 @@
 
 #define VIR_FROM_THIS VIR_FROM_XEN_INOTIFY
 
-#define virXenInotifyError(conn, code, fmt...)                                 \
+#define virXenInotifyError(conn, code, ...)                                   \
         virReportErrorHelper(NULL, VIR_FROM_XEN_INOTIFY, code, __FILE__,      \
-                               __FUNCTION__, __LINE__, fmt)
+                             __FUNCTION__, __LINE__, __VA_ARGS__)
 
 struct xenUnifiedDriver xenInotifyDriver = {
     xenInotifyOpen, /* open */
index 5f46e9f5be12b51ea88c5d74122fa320f83ac620..cd7177b38e3476ac448059ff5becdc993684f6d3 100644 (file)
@@ -1,9 +1,8 @@
 /*
  * xend_internal.c: access to Xen though the Xen Daemon interface
  *
- * Copyright (C) 2005
- *
- *      Anthony Liguori <aliguori@us.ibm.com>
+ * Copyright (C) 2010 Red Hat, Inc.
+ * Copyright (C) 2005 Anthony Liguori <aliguori@us.ibm.com>
  *
  *  This file is subject to the terms and conditions of the GNU Lesser General
  *  Public License. See the file COPYING.LIB in the main directory of this
@@ -99,9 +98,9 @@ virDomainXMLDevID(virDomainPtr domain,
                   int ref_len);
 #endif
 
-#define virXendError(conn, code, fmt...)                                     \
+#define virXendError(conn, code, ...)                                      \
         virReportErrorHelper(conn, VIR_FROM_XEND, code, __FILE__,          \
-                               __FUNCTION__, __LINE__, fmt)
+                             __FUNCTION__, __LINE__, __VA_ARGS__)
 
 #define virXendErrorInt(conn, code, ival)                                    \
         virXendError(conn, code, "%d", ival)
index 3710dcbf22eef736353f153f9f4e6c526609e7c3..0973b4334665951bd5d8f2b8bc962d0efbf0eef6 100644 (file)
@@ -120,9 +120,9 @@ struct xenUnifiedDriver xenXMDriver = {
     NULL, /* domainSetSchedulerParameters */
 };
 
-#define xenXMError(conn, code, fmt...)                                       \
+#define xenXMError(conn, code, ...)                                        \
         virReportErrorHelper(conn, VIR_FROM_XENXM, code, __FILE__,         \
-                               __FUNCTION__, __LINE__, fmt)
+                             __FUNCTION__, __LINE__, __VA_ARGS__)
 
 #ifndef WITH_XEN_INOTIFY
 static int xenInotifyActive(virConnectPtr conn ATTRIBUTE_UNUSED)
index c8402259c383550937200c33db82d198843b0dc3..0c625654c45e022fffccf447418fa52be9e28232 100644 (file)
@@ -87,9 +87,9 @@ struct xenUnifiedDriver xenStoreDriver = {
 
 #endif /* ! PROXY */
 
-#define virXenStoreError(conn, code, fmt...)                                 \
+#define virXenStoreError(conn, code, ...)                                  \
         virReportErrorHelper(NULL, VIR_FROM_XENSTORE, code, __FILE__,      \
-                               __FUNCTION__, __LINE__, fmt)
+                             __FUNCTION__, __LINE__, __VA_ARGS__)
 
 /************************************************************************
  *                                                                     *