misc: syslog: Simplify implementation
commitf9f5c70e7f2ba928fe86801b8d05ffe8f4972d59
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 5 Oct 2021 12:26:54 +0000 (5 09:26 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 15 Apr 2022 13:41:54 +0000 (15 10:41 -0300)
tree2a8fef13230a02fe3e3f79a740bcc05d52d83333
parent0cc15f45c95a793e392dc6bd72662c7c76e00b25
misc: syslog: Simplify implementation

Use a temporary buffer for strftime instead of using internal libio
members, simplify fprintf call on the memstream and memory allocation,
use %b instead of %h, use dprintf instead of writev for LOG_PERROR.

Checked on x86_64-linux-gnu and i686-linux-gnu.
misc/syslog.c