mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 03:28:11 +02:00
Added missing implementation for _dbus_system_logv().
This commit is contained in:
parent
da3578a1a7
commit
5951a59924
1 changed files with 15 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue