summaryrefslogtreecommitdiff
path: root/src/util/viraudit.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-09-27 14:44:22 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-09-28 10:39:28 +0100
commite8fd8757c89abbd38571092bbb987650b7658aec (patch)
tree67863822fcd995dad967b9dcaf05fc65f9cb0420 /src/util/viraudit.h
parent0225c566f4d58dac9cd1071c97c495c5beaf653e (diff)
downloadlibvirt-e8fd8757c89abbd38571092bbb987650b7658aec.tar.gz
Change logging category parameter into an enum
The 'const char *category' parameter only has a few possible values now that the filename has been separated. Turn this parameter into an enum instead. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'src/util/viraudit.h')
-rw-r--r--src/util/viraudit.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/viraudit.h b/src/util/viraudit.h
index 36fdd7fa7d..b0356da0cb 100644
--- a/src/util/viraudit.h
+++ b/src/util/viraudit.h
@@ -35,7 +35,7 @@ int virAuditOpen(void);
void virAuditLog(int enabled);
-void virAuditSend(const char *file, const char *func, size_t linenr,
+void virAuditSend(const char *filename, size_t linenr, const char *funcname,
const char *clienttty, const char *clientaddr,
enum virAuditRecordType type, bool success,
const char *fmt, ...)
@@ -46,11 +46,11 @@ char *virAuditEncode(const char *key, const char *value);
void virAuditClose(void);
# define VIR_AUDIT(type, success, ...) \
- virAuditSend(__FILE__, __func__, __LINE__, \
+ virAuditSend(__FILE__, __LINE__, __func__, \
NULL, NULL, type, success, __VA_ARGS__);
# define VIR_AUDIT_USER(type, success, clienttty, clientaddr, ...) \
- virAuditSend(__FILE__, __func__, __LINE__, \
+ virAuditSend(__FILE__, __LINE__, __func__, \
clienttty, clientaddr, type, success, __VA_ARGS__);
# define VIR_AUDIT_STR(str) \