projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da3578a
)
Added missing implementation for _dbus_system_logv().
author
Ralf Habacker
<ralf.habacker@freenet.de>
Mon, 3 May 2010 10:06:22 +0000
(12:06 +0200)
committer
Ralf Habacker
<ralf.habacker@freenet.de>
Mon, 3 May 2010 10:06:22 +0000
(12:06 +0200)
dbus/dbus-sysdeps-util-win.c
patch
|
blob
|
history
diff --git
a/dbus/dbus-sysdeps-util-win.c
b/dbus/dbus-sysdeps-util-win.c
index
5cb1c57
..
b42ac27
100644
(file)
--- 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