mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
build-sys: Clarify some systemd sub-component variable/define names.
We currently use the term SYSTEMD when referring to libsystemd-login and JOURNAL when referring to libsystemd-journal. I will be shortly adding support for libsystemd-daemon and in preparation I figured it would be a good idea to clarify the names used currently before adding another!
This commit is contained in:
parent
e775529167
commit
f7da58b73f
6 changed files with 30 additions and 30 deletions
|
|
@ -40,7 +40,7 @@
|
|||
#include <syslog.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_JOURNAL
|
||||
#ifdef HAVE_SYSTEMD_JOURNAL
|
||||
#include <systemd/sd-journal.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ static const int level_to_syslog[] = {
|
|||
|
||||
/* These are actually equivalent to the syslog ones
|
||||
* but we don't want to depend on syslog.h */
|
||||
#ifdef HAVE_JOURNAL
|
||||
#ifdef HAVE_SYSTEMD_JOURNAL
|
||||
static const int level_to_journal[] = {
|
||||
[PA_LOG_ERROR] = 3,
|
||||
[PA_LOG_WARN] = 4,
|
||||
|
|
@ -145,7 +145,7 @@ int pa_log_set_target(pa_log_target *t) {
|
|||
switch (t->type) {
|
||||
case PA_LOG_STDERR:
|
||||
case PA_LOG_SYSLOG:
|
||||
#ifdef HAVE_JOURNAL
|
||||
#ifdef HAVE_SYSTEMD_JOURNAL
|
||||
case PA_LOG_JOURNAL:
|
||||
#endif
|
||||
case PA_LOG_NULL:
|
||||
|
|
@ -488,7 +488,7 @@ void pa_log_levelv_meta(
|
|||
break;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_JOURNAL
|
||||
#ifdef HAVE_SYSTEMD_JOURNAL
|
||||
case PA_LOG_JOURNAL:
|
||||
if (sd_journal_send("MESSAGE=%s", t,
|
||||
"PRIORITY=%i", level_to_journal[level],
|
||||
|
|
@ -619,7 +619,7 @@ pa_log_target *pa_log_parse_target(const char *string) {
|
|||
t = pa_log_target_new(PA_LOG_STDERR, NULL);
|
||||
else if (pa_streq(string, "syslog"))
|
||||
t = pa_log_target_new(PA_LOG_SYSLOG, NULL);
|
||||
#ifdef HAVE_JOURNAL
|
||||
#ifdef HAVE_SYSTEMD_JOURNAL
|
||||
else if (pa_streq(string, "journal"))
|
||||
t = pa_log_target_new(PA_LOG_JOURNAL, NULL);
|
||||
#endif
|
||||
|
|
@ -647,7 +647,7 @@ char *pa_log_target_to_string(const pa_log_target *t) {
|
|||
case PA_LOG_SYSLOG:
|
||||
string = pa_xstrdup("syslog");
|
||||
break;
|
||||
#ifdef HAVE_JOURNAL
|
||||
#ifdef HAVE_SYSTEMD_JOURNAL
|
||||
case PA_LOG_JOURNAL:
|
||||
string = pa_xstrdup("journal");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue