Fix some extra arguments for string format functions.

This commit is contained in:
Aaron Gyes 2021-12-12 14:05:17 -08:00
parent 04a4693b5b
commit 76eef0fea9
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ maybe_t<int> builtin_pwd(parser_t &parser, io_streams_t &streams, const wchar_t
pwd = std::move(*real_pwd);
} else {
const char *error = std::strerror(errno);
streams.err.append_format(L"%ls: realpath failed:", cmd, error);
streams.err.append_format(L"%ls: realpath failed: %s", cmd, error);
return STATUS_CMD_ERROR;
}
}

View File

@ -221,7 +221,7 @@ int thread_pool_t::perform(void_function_t &&func, bool cant_wait) {
// Kick off the thread if we decided to do so.
if (wakeup_thread) {
FLOGF(iothread, L"notifying a thread", this_thread());
FLOGF(iothread, L"notifying thread: %p", this_thread());
pool.queue_cond.notify_one();
}
if (spawn_new_thread) {

View File

@ -924,7 +924,7 @@ int terminal_maybe_give_to_job_group(const job_group_t *jg, bool continuing_from
} else {
// Debug the original tcsetpgrp error (not the waitpid errno) to the log, and
// then retry until not EPERM or the process group has exited.
FLOGF(proc_termowner, L"terminal_give_to_job(): EPERM.\n", pgid);
FLOGF(proc_termowner, L"terminal_give_to_job(): EPERM with pgid %d.", pgid);
continue;
}
} else if (errno == ENOTTY) {