syslogd,logread: get rid of head pointer, fix logread bug in the process
function old new delta logread_main 450 462 +12 syslogd_main 1246 1252 +6 shbuf - 4 +4 buf 34 30 -4 packed_usage 22729 22724 -5 log_locally 957 767 -190 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/3 up/down: 22/-199) Total: -177 bytes text data bss dec hex filename 773886 1116 11316 786318 bff8e busybox_old 773714 1116 11316 786146 bfee2 busybox_unstripped
This commit is contained in:
@ -3327,17 +3327,17 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
|
||||
"Note that this version of syslogd ignores /etc/syslog.conf." \
|
||||
"\n\nOptions:" \
|
||||
"\n -n Run as foreground process" \
|
||||
"\n -O FILE Use an alternate log file (default=/var/log/messages)" \
|
||||
"\n -l n Sets the local log level of messages to n" \
|
||||
"\n -S Make logging output smaller" \
|
||||
"\n -O FILE Log to given file (default=/var/log/messages)" \
|
||||
"\n -l n Set local log level" \
|
||||
"\n -S Smaller logging output" \
|
||||
USE_FEATURE_ROTATE_LOGFILE( \
|
||||
"\n -s SIZE Max size (KB) before rotate (default=200KB, 0=off)" \
|
||||
"\n -b NUM Number of rotated logs to keep (default=1, max=99, 0=purge)") \
|
||||
USE_FEATURE_REMOTE_LOG( \
|
||||
"\n -R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)" \
|
||||
"\n -L Log locally and via network logging (default is network only)") \
|
||||
"\n -L Log locally and via network (default is network only if -R)") \
|
||||
USE_FEATURE_IPC_SYSLOG( \
|
||||
"\n -C[size(KiB)] Log to a shared mem buffer (read the buffer using logread)")
|
||||
"\n -C[size(KiB)] Log to shared mem buffer (read it using logread)")
|
||||
/* NB: -Csize shouldn't have space (because size is optional) */
|
||||
/* "\n -m MIN Minutes between MARK lines (default=20, 0=off)" */
|
||||
#define syslogd_example_usage \
|
||||
|
Reference in New Issue
Block a user