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

@ -451,7 +451,7 @@ parse_reply(struct module *mod, const struct nlmsghdr *hdr, size_t len)
case NLMSG_ERROR:{
const struct nlmsgerr *err = NLMSG_DATA(hdr);
LOG_ERRNO_P("netlink", err->error);
LOG_ERRNO_P(err->error, "netlink");
return false;
}