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

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

 



From: "Richard W.M. Jones" <rjones@xxxxxxxxxx>

---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]