mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-09 03:58:05 +02:00
Merge branch 'push-kyuwstornpno' into 'master'
wp/log: only call gettid() on linux See merge request pipewire/wireplumber!806
This commit is contained in:
commit
7351643986
1 changed files with 6 additions and 1 deletions
|
|
@ -777,7 +777,12 @@ wp_log_fields_write_to_journal (WpLogFields *lf)
|
|||
g_autofree gchar *full_message = NULL;
|
||||
const gchar *message = lf->message ? lf->message : "";
|
||||
g_autofree gchar *pid = g_strdup_printf("%d", getpid());
|
||||
g_autofree gchar *tid = g_strdup_printf("%d", gettid());
|
||||
#ifdef __linux__
|
||||
pid_t tid_val = gettid();
|
||||
#else
|
||||
pid_t tid_val = -1;
|
||||
#endif
|
||||
g_autofree gchar *tid = g_strdup_printf("%d", tid_val);
|
||||
#ifdef HAS_SHORT_NAME
|
||||
const gchar *syslog_identifier = program_invocation_short_name;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue