Fix log option flag: LOG_RFC3154 -> LOG_RFC3164

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2022-07-31 12:54:25 +02:00
parent 7f4dcff60d
commit 8b513ade8e
3 changed files with 3 additions and 3 deletions

View File

@ -290,7 +290,7 @@ int main(int argc, char *argv[])
break;
case 'b':
log_opts |= LOG_RFC3154;
log_opts |= LOG_RFC3164;
break;
case 'c':

View File

@ -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();

View File

@ -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__