diff options
author | Denys Vlasenko | 2017-08-16 15:05:36 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-08-16 15:05:36 +0200 |
commit | cf686ae3b401c68b64ff997b68b7972881dbf80e (patch) | |
tree | 1783ea92906d002bded11244d2d1b692b25b2319 /sysklogd/logger.c | |
parent | dce39c98944ec6570dee5afc1e2edb16f87c1546 (diff) | |
download | busybox-cf686ae3b401c68b64ff997b68b7972881dbf80e.zip busybox-cf686ae3b401c68b64ff997b68b7972881dbf80e.tar.gz |
syslogd,logger: code shrink for musl
function old new delta
syslogd_main 1252 1910 +658
logger_main 277 393 +116
timestamp_and_log 434 542 +108
static.__compound_literal - 104 +104
parse_fac_prio_20 137 - -137
pencode 167 - -167
parse_syslogdcfg 715 - -715
------------------------------------------------------------------------------
(add/remove: 1/3 grow/shrink: 3/0 up/down: 986/-1019) Total: -33 bytes
text data bss dec hex filename
912506 563 6132 919201 e06a1 busybox_old
912364 563 6132 919059 e0613 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r-- | sysklogd/logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 359ac3a..1e0384c 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c @@ -77,14 +77,14 @@ static int pencode(char *s) ; if (*s) { *s = '\0'; - fac = decode(save, facilitynames); + fac = decode(save, bb_facilitynames); if (fac < 0) bb_error_msg_and_die("unknown %s name: %s", "facility", save); *s++ = '.'; } else { s = save; } - lev = decode(s, prioritynames); + lev = decode(s, bb_prioritynames); if (lev < 0) bb_error_msg_and_die("unknown %s name: %s", "priority", save); return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK)); |