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

View file

@ -203,7 +203,7 @@ exposable_default_on_mouse(struct exposable *exposable, struct bar *bar,
if (WIFEXITED(wstatus)) {
if (WEXITSTATUS(wstatus) != 0)
LOG_ERRNO_P("%s: failed to execute", WEXITSTATUS(wstatus), exposable->on_click[btn]);
LOG_ERRNO_P(WEXITSTATUS(wstatus), "%s: failed to execute", exposable->on_click[btn]);
} else
LOG_ERR("%s: did not exit normally", exposable->on_click[btn]);