[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v3 1/2] Allow virReportSystemError to take no optional arguments.



From: "Richard W.M. Jones" <rjones redhat com>

---
 src/util/virerror.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virerror.h b/src/util/virerror.h
index 332a5eb..ac6d746 100644
--- a/src/util/virerror.h
+++ b/src/util/virerror.h
@@ -62,11 +62,11 @@ void virReportSystemErrorFull(int domcode,
                               const char *fmt, ...)
     ATTRIBUTE_FMT_PRINTF(6, 7);
 
-# define virReportSystemError(theerrno, fmt,...)                   \
+# define virReportSystemError(theerrno, ...)                      \
     virReportSystemErrorFull(VIR_FROM_THIS,                       \
                              (theerrno),                          \
                              __FILE__, __FUNCTION__, __LINE__,    \
-                             (fmt), __VA_ARGS__)
+                             __VA_ARGS__)
 
 # define virReportInvalidNullArg(argname)                            \
     virRaiseErrorFull(__FILE__, __FUNCTION__, __LINE__,              \
-- 
1.8.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]