From aed92380e5e9b9adfa7b4d0f5bbcba91096024fb Mon Sep 17 00:00:00 2001 From: Romain Pokrzywka Date: Tue, 16 Mar 2010 16:13:00 -0700 Subject: [PATCH] Update the windows implementation of logging functions Following commit: 04cf3166002a86b9a22851be4e243c87b5b3048d for Unix. --- dbus/dbus-sysdeps-util-win.c | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/dbus/dbus-sysdeps-util-win.c b/dbus/dbus-sysdeps-util-win.c index b9ebc82a..2722b01e 100644 --- a/dbus/dbus-sysdeps-util-win.c +++ b/dbus/dbus-sysdeps-util-win.c @@ -231,27 +231,37 @@ _dbus_init_system_log (void) } /** - * Log an informative message. Intended for use primarily by - * the system bus. + * Log a message to the system log file (e.g. syslog on Unix). * + * @param severity a severity value * @param msg a printf-style format string * @param args arguments for the format string + * */ void -_dbus_log_info (const char *msg, va_list args) +_dbus_system_log (DBusSystemLogSeverity severity, const char *msg, ...) { - // FIXME! + va_list args; + + va_start (args, msg); + + _dbus_system_logv (severity, msg, args); + + va_end (args); } /** - * Log a security-related message. Intended for use primarily by - * the system bus. + * Log a message to the system log file (e.g. syslog on Unix). * + * @param severity a severity value * @param msg a printf-style format string * @param args arguments for the format string + * + * If the FATAL severity is given, this function will terminate the program + * with an error code. */ void -_dbus_log_security (const char *msg, va_list args) +_dbus_system_logv (DBusSystemLogSeverity severity, const char *msg, va_list args) { // FIXME! }