diff options
| author | Brian Somers <brian@FreeBSD.org> | 2001-11-03 21:45:32 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2001-11-03 21:45:32 +0000 |
| commit | 46df5aa7bc98cd1d4769ce244d518f4e161f3e61 (patch) | |
| tree | ec148ab8a0b3c8d98c08221f9c5b958f68a4203f /usr.sbin/ppp/log.c | |
| parent | 5eef06c222360519f1ba82ee24350adbb1e70ac2 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ppp/log.c')
| -rw-r--r-- | usr.sbin/ppp/log.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/ppp/log.c b/usr.sbin/ppp/log.c index 5011ed42d6a0..d80af36fca3e 100644 --- a/usr.sbin/ppp/log.c +++ b/usr.sbin/ppp/log.c @@ -194,6 +194,8 @@ static int syslogLevel(int lev) { switch (lev) { + case LogLOG: + return LOG_INFO; case LogDEBUG: case LogTIMER: return LOG_DEBUG; @@ -210,6 +212,8 @@ syslogLevel(int lev) const char * log_Name(int id) { + if (id == LogLOG) + return "LOG"; return id < LogMIN || id > LogMAX ? "Unknown" : LogNames[id - 1]; } @@ -261,6 +265,8 @@ log_DiscardAllLocal(u_long *mask) int log_IsKept(int id) { + if (id == LogLOG) + return LOG_KEPT_SYSLOG; if (id < LogMIN || id > LogMAX) return 0; if (id > LogMAXCONF) |
