log: include 'fmt' in __VA_ARGS__

This ensures all calls have at least one __VA_ARGS__ argument, thus
making them ISO C99 compliant.
This commit is contained in:
Daniel Eklöf 2020-08-23 07:44:02 +02:00
parent dabdffafa5
commit c779a5ec7d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 27 additions and 26 deletions

View file

@ -61,7 +61,7 @@ spawn(struct reaper *reaper, const char *cwd, char *const argv[],
LOG_ERRNO("failed to read from pipe");
return false;
} else {
LOG_ERRNO_P("%s: failed to spawn", _errno, argv[0]);
LOG_ERRNO_P(_errno, "%s: failed to spawn", argv[0]);
errno = _errno;
waitpid(pid, NULL, 0);
return false;