Use matching signedness in format strings

Either cast the variable or change the format string to match the
signedness.
This commit is contained in:
Christian Kellner
2019-03-21 13:50:26 +01:00
committed by Alex Smith
parent 0eb59fc848
commit 45ba5bc4c4
3 changed files with 6 additions and 6 deletions

View File

@@ -133,7 +133,7 @@ int run_external_process(const char *const *exec_args, char buffer[EXTERNAL_BUFF
if (!WIFEXITED(status)) {
LOG_ERROR("Child process '%s' exited abnormally\n", exec_args[0]);
} else if (WEXITSTATUS(status) != 0) {
LOG_ERROR("External process failed with exit code %u\n", WEXITSTATUS(status));
LOG_ERROR("External process failed with exit code %d\n", WEXITSTATUS(status));
LOG_ERROR("Output was: %s\n", buffer ? buffer : internal);
return -1;
}