crond: simplify logging code
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 30 Apr 2014 12:49:52 +0000 (14:49 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 30 Apr 2014 12:49:52 +0000 (14:49 +0200)
commitd5929d602ee952d2f2468b4957a4ebd219108b2f
tree2a4599885bc4f84e13e4bec0e6946a4f7511d8ab
parent3dfe0ae5a8c4f3a75f61df157db157ac0e044a51
crond: simplify logging code

Slight change in behavior: now -l 5 will enable the same messages
formerly only enabled for -d 5. (Old behavior was non-sensical).

function                                             old     new   delta
reopen_logfile_to_stderr                               -      34     +34
log8                                                   -      26     +26
log7                                                   -      26     +26
log5                                                   -      26     +26
load_crontab                                         706     688     -18
rescan_crontab_dir                                   157     137     -20
crond_main                                          1486    1456     -30
fork_job                                             389     343     -46
crondlog                                             108      38     -70
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 0/5 up/down: 112/-184)          Total: -72 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/crond.c