log: pull in log.{c,h} from foot

This commit is contained in:
Daniel Eklöf 2021-08-15 11:41:12 +02:00
parent 58a52512dd
commit 7d3851046e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 197 additions and 118 deletions

4
main.c
View file

@ -275,7 +275,7 @@ main(int argc, char *const *argv)
log_init(log_colorize, log_syslog, LOG_FACILITY_DAEMON, LOG_CLASS_INFO);
_Static_assert(LOG_CLASS_ERROR + 1 == FCFT_LOG_CLASS_ERROR,
_Static_assert((int)LOG_CLASS_ERROR == (int)FCFT_LOG_CLASS_ERROR,
"fcft log level enum offset");
_Static_assert((int)LOG_COLORIZE_ALWAYS == (int)FCFT_LOG_COLORIZE_ALWAYS,
"fcft colorize enum mismatch");
@ -367,7 +367,7 @@ done:
int res;
int r = thrd_join(bar_thread, &res);
if (r != 0)
LOG_ERRNO_P("failed to join bar thread", r);
LOG_ERRNO_P(r, "failed to join bar thread");
bar->destroy(bar);
close(abort_fd);