summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-internals.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2007-06-09 21:53:20 +0000
committerHavoc Pennington <hp@redhat.com>2007-06-09 21:53:20 +0000
commit23832672266bb4ff23b66247c0cfa1a2ed0cc97b (patch)
tree119e37411f14923780de3ca7a759707508f1ec63 /dbus/dbus-internals.c
parentb80a8fe6b364543aa4b32a02a5ad913faf97173b (diff)
2007-06-09 Havoc Pennington <hp@redhat.com>
* bus/dispatch.c (check_get_connection_unix_process_id): adapt since sysdeps-unix.h stuff isn't included anymore * bus/bus.c (bus_context_new): use more abstract functions to change user, so they can be no-ops on Windows * dbus/dbus-credentials.c, dbus/dbus-credentials.h, dbus/dbus-credentials-util.c: new files containing a fully opaque DBusCredentials data type to replace the old not opaque one. * configure.in (DBUS_UNIX): define DBUS_UNIX to match DBUS_WIN on windows * dbus/dbus-userdb.h: prohibit on Windows, next step is to clean up the uses of it in bus/*.c and factor out the parts of cookie auth that depend on it
Diffstat (limited to 'dbus/dbus-internals.c')
-rw-r--r--dbus/dbus-internals.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c
index b0a0f023..86c13324 100644
--- a/dbus/dbus-internals.c
+++ b/dbus/dbus-internals.c
@@ -271,7 +271,7 @@ _dbus_warn_check_failed(const char *format,
if (!warn_initted)
init_warnings ();
- fprintf (stderr, "process %lu: ", _dbus_getpid ());
+ fprintf (stderr, "process %lu: ", _dbus_pid_for_log ());
va_start (args, format);
vfprintf (stderr, format, args);
@@ -349,9 +349,9 @@ _dbus_verbose_real (const char *format,
if (need_pid)
{
#if PTHREAD_IN_VERBOSE
- fprintf (stderr, "%lu: 0x%lx: ", _dbus_getpid (), pthread_self ());
+ fprintf (stderr, "%lu: 0x%lx: ", _dbus_pid_for_log (), pthread_self ());
#else
- fprintf (stderr, "%lu: ", _dbus_getpid ());
+ fprintf (stderr, "%lu: ", _dbus_pid_for_log ());
#endif
}
@@ -813,7 +813,7 @@ _dbus_real_assert (dbus_bool_t condition,
if (_DBUS_UNLIKELY (!condition))
{
_dbus_warn ("%lu: assertion failed \"%s\" file \"%s\" line %d function %s\n",
- _dbus_getpid (), condition_text, file, line, func);
+ _dbus_pid_for_log (), condition_text, file, line, func);
_dbus_abort ();
}
}
@@ -834,7 +834,7 @@ _dbus_real_assert_not_reached (const char *explanation,
int line)
{
_dbus_warn ("File \"%s\" line %d process %lu should not have been reached: %s\n",
- file, line, _dbus_getpid (), explanation);
+ file, line, _dbus_pid_for_log (), explanation);
_dbus_abort ();
}
#endif /* DBUS_DISABLE_ASSERT */