Fix log option flag: LOG_RFC3154 -> LOG_RFC3164
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
7f4dcff60d
commit
8b513ade8e
@ -290,7 +290,7 @@ int main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'b':
|
case 'b':
|
||||||
log_opts |= LOG_RFC3154;
|
log_opts |= LOG_RFC3164;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
|
@ -265,7 +265,7 @@ vsyslogp_r(int pri, struct syslog_data *data, const char *msgid,
|
|||||||
} while (/*CONSTCOND*/0)
|
} while (/*CONSTCOND*/0)
|
||||||
|
|
||||||
/* Default log format is RFC5424, continues below BSD format */
|
/* 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)) {
|
if (!(data->log_stat & LOG_NLOG)) {
|
||||||
prlen = snprintf(p, tbuf_left, "<%d>", pri);
|
prlen = snprintf(p, tbuf_left, "<%d>", pri);
|
||||||
DEC();
|
DEC();
|
||||||
|
@ -190,7 +190,7 @@ CODE facilitynames[] = {
|
|||||||
#define LOG_PTRIM 0x040 /* trim tag and pid from messages to stderr */
|
#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_NLOG 0x080 /* don't write to the system log */
|
||||||
#define LOG_STDOUT 0x100 /* like nlog, for debugging syslogp() API */
|
#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__
|
#ifndef __KERNEL__
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user