[PATCH 4/7] Add printf format attribute annotation to virAuditSend method

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

 



* src/util/virtaudit.h: Add printf format attribute annotation
---
 src/util/virtaudit.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/util/virtaudit.h b/src/util/virtaudit.h
index 37046f2..6c4deeb 100644
--- a/src/util/virtaudit.h
+++ b/src/util/virtaudit.h
@@ -39,7 +39,8 @@ void virAuditLog(int enabled);
 void virAuditSend(const char *file, const char *func, size_t linenr,
                   const char *clienttty, const char *clientaddr,
                   enum virAuditRecordType type, bool success,
-                  const char *fmt, ...);
+                  const char *fmt, ...)
+    ATTRIBUTE_FMT_PRINTF(8, 9);
 
 char *virAuditEncode(const char *key, const char *value);
 
-- 
1.7.2.3

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