From 5951a5992479a2c13edbd26f4f5e66fb1148a036 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 3 May 2010 12:06:22 +0200 Subject: [PATCH] Added missing implementation for _dbus_system_logv(). --- dbus/dbus-sysdeps-util-win.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-util-win.c b/dbus/dbus-sysdeps-util-win.c index 5cb1c57..b42ac27 100644 --- a/dbus/dbus-sysdeps-util-win.c +++ b/dbus/dbus-sysdeps-util-win.c @@ -294,7 +294,21 @@ _dbus_system_log (DBusSystemLogSeverity severity, const char *msg, ...) void _dbus_system_logv (DBusSystemLogSeverity severity, const char *msg, va_list args) { - // FIXME! + char *s = ""; + char buf[1024]; + + switch(severity) + { + case DBUS_SYSTEM_LOG_INFO: s = "info"; break; + case DBUS_SYSTEM_LOG_SECURITY: s = "security"; break; + case DBUS_SYSTEM_LOG_FATAL: s = "fatal"; break; + } + + sprintf(buf,"%s%s",s,msg); + _dbus_verbose_real ("",0,"",buf,args); + + if (severity == DBUS_SYSTEM_LOG_FATAL) + exit (1); } /** Installs a signal handler -- 2.7.4