Use FLOGF when formatting is needed

This passed a format string in a variable which is why it was
presumably overlooked.

[ci skip]
This commit is contained in:
Fabian Homborg
2019-05-30 11:48:11 +02:00
parent ee9e5d4996
commit 9d62d8e3fd

View File

@@ -1499,7 +1499,7 @@ void universal_notifier_named_pipe_t::make_pipe(const wchar_t *test_path) {
if (mkfifo_status == -1 && errno != EEXIST) {
const char *error = std::strerror(errno);
const wchar_t *errmsg = _(L"Unable to make a pipe for universal variables using '%ls': %s");
FLOG(error, errmsg, vars_path.c_str(), error);
FLOGF(error, errmsg, vars_path.c_str(), error);
pipe_fd = -1;
return;
}
@@ -1508,7 +1508,7 @@ void universal_notifier_named_pipe_t::make_pipe(const wchar_t *test_path) {
if (fd < 0) {
const char *error = std::strerror(errno);
const wchar_t *errmsg = _(L"Unable to open a pipe for universal variables using '%ls': %s");
FLOG(error, errmsg, vars_path.c_str(), error);
FLOGF(error, errmsg, vars_path.c_str(), error);
pipe_fd = -1;
return;
}