diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2015-12-31 20:01:24 -0500 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2015-12-31 20:01:24 -0500 |
commit | ffa927fa361c366d8d1d2fefdeb58d0977ab91ae (patch) | |
tree | 99cc94fa94a648ab86139c18133cf410fb6298ca /other/bootstrap_daemon/src/log.c | |
parent | a40fd1bb6c4769683c11b3e308279c17a0acbc5a (diff) |
Rename LOGGER_BACKEND to LOG_BACKEND
Diffstat (limited to 'other/bootstrap_daemon/src/log.c')
-rw-r--r-- | other/bootstrap_daemon/src/log.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/other/bootstrap_daemon/src/log.c b/other/bootstrap_daemon/src/log.c index b5f838fb..f41b8420 100644 --- a/other/bootstrap_daemon/src/log.c +++ b/other/bootstrap_daemon/src/log.c | |||
@@ -30,15 +30,15 @@ | |||
30 | #include <stdarg.h> | 30 | #include <stdarg.h> |
31 | #include <stdio.h> | 31 | #include <stdio.h> |
32 | 32 | ||
33 | LOGGER_BACKEND current_backend = -1; | 33 | LOG_BACKEND current_backend = -1; |
34 | 34 | ||
35 | bool open_log(LOGGER_BACKEND backend) | 35 | bool open_log(LOG_BACKEND backend) |
36 | { | 36 | { |
37 | if (current_backend != -1) { | 37 | if (current_backend != -1) { |
38 | return false; | 38 | return false; |
39 | } | 39 | } |
40 | 40 | ||
41 | if (backend == LOGGER_BACKEND_SYSLOG) { | 41 | if (backend == LOG_BACKEND_SYSLOG) { |
42 | openlog(DAEMON_NAME, LOG_NOWAIT | LOG_PID, LOG_DAEMON); | 42 | openlog(DAEMON_NAME, LOG_NOWAIT | LOG_PID, LOG_DAEMON); |
43 | } | 43 | } |
44 | 44 | ||
@@ -53,7 +53,7 @@ bool close_log() | |||
53 | return false; | 53 | return false; |
54 | } | 54 | } |
55 | 55 | ||
56 | if (current_backend == LOGGER_BACKEND_SYSLOG) { | 56 | if (current_backend == LOG_BACKEND_SYSLOG) { |
57 | closelog(); | 57 | closelog(); |
58 | } | 58 | } |
59 | 59 | ||
@@ -101,10 +101,10 @@ bool write_log(LOG_LEVEL level, const char *format, ...) | |||
101 | va_start(args, format); | 101 | va_start(args, format); |
102 | 102 | ||
103 | switch (current_backend) { | 103 | switch (current_backend) { |
104 | case LOGGER_BACKEND_SYSLOG: | 104 | case LOG_BACKEND_SYSLOG: |
105 | log_syslog(level, format, args); | 105 | log_syslog(level, format, args); |
106 | break; | 106 | break; |
107 | case LOGGER_BACKEND_STDOUT: | 107 | case LOG_BACKEND_STDOUT: |
108 | log_stdout(level, format, args); | 108 | log_stdout(level, format, args); |
109 | break; | 109 | break; |
110 | } | 110 | } |