diff --git a/src/logger.c b/src/logger.c index 342b8f6..bf91c5f 100644 --- a/src/logger.c +++ b/src/logger.c @@ -290,7 +290,7 @@ int main(int argc, char *argv[]) break; case 'b': - log_opts |= LOG_RFC3154; + log_opts |= LOG_RFC3164; break; case 'c': diff --git a/src/syslog.c b/src/syslog.c index 125ab3a..736c793 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -265,7 +265,7 @@ vsyslogp_r(int pri, struct syslog_data *data, const char *msgid, } while (/*CONSTCOND*/0) /* Default log format is RFC5424, continues below BSD format */ - if (data->log_stat & LOG_RFC3154) { + if (data->log_stat & LOG_RFC3164) { if (!(data->log_stat & LOG_NLOG)) { prlen = snprintf(p, tbuf_left, "<%d>", pri); DEC(); diff --git a/src/syslog.h b/src/syslog.h index 01e3a55..49df25d 100644 --- a/src/syslog.h +++ b/src/syslog.h @@ -190,7 +190,7 @@ CODE facilitynames[] = { #define LOG_PTRIM 0x040 /* trim tag and pid from messages to stderr */ #define LOG_NLOG 0x080 /* don't write to the system log */ #define LOG_STDOUT 0x100 /* like nlog, for debugging syslogp() API */ -#define LOG_RFC3154 0x200 /* Log to remote/ipc socket in old BSD format */ +#define LOG_RFC3164 0x200 /* Log to remote/ipc socket in old BSD format */ #ifndef __KERNEL__