diff options
author | asomers <asomers@FreeBSD.org> | 2016-04-08 21:42:35 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2016-04-08 21:42:35 +0000 |
commit | 336b1f7bb670aa4ebb365bab9cfc602548954333 (patch) | |
tree | c15c8f5703ce790c1f8c5f1182addbb0748891fc /usr.sbin | |
parent | 1e918163f53aacfc49ab87afb9dcfb42b0ed05e9 (diff) | |
download | FreeBSD-src-336b1f7bb670aa4ebb365bab9cfc602548954333.zip FreeBSD-src-336b1f7bb670aa4ebb365bab9cfc602548954333.tar.gz |
MFC r294924
syslogd: Enable repeated line compression for lines of any length.
Enable repeated line compression for lines of any length, instead of only short
lines. AFAICT repeated line compression was limited to short lines as a RAM
optimization, which made sense when karels added it in 1988, but no longer.
The penalty is a paltry 904B of RAM per file logged.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 097e158..6e6d48a 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -69,7 +69,7 @@ __FBSDID("$FreeBSD$"); */ #define MAXLINE 1024 /* maximum line length */ -#define MAXSVLINE 120 /* maximum saved line length */ +#define MAXSVLINE MAXLINE /* maximum saved line length */ #define DEFUPRI (LOG_USER|LOG_NOTICE) #define DEFSPRI (LOG_KERN|LOG_CRIT) #define TIMERINTVL 30 /* interval for checking flush, mark */ |