From: Romain Pokrzywka Date: Tue, 16 Mar 2010 23:13:00 +0000 (-0700) Subject: Update the windows implementation of logging functions X-Git-Tag: dbus-1.3.1~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aed92380e5e9b9adfa7b4d0f5bbcba91096024fb;p=thirdparty%2Fdbus.git Update the windows implementation of logging functions Following commit: 04cf3166002a86b9a22851be4e243c87b5b3048d for Unix. --- diff --git a/dbus/dbus-sysdeps-util-win.c b/dbus/dbus-sysdeps-util-win.c index b9ebc82a5..2722b01e3 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! }