diff options
author | Zhidao HONG <z.hong@f5.com> | 2021-05-05 17:23:33 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2021-05-05 17:23:33 +0800 |
commit | de631d8c36cebdd69018dfa3ff145ba8b701a2d1 (patch) | |
tree | 05c2ca5675f30a810e2c43425dae81b10a6c5593 /src | |
parent | 8bea2977bc292a9631512734ff6c46b62b24cf26 (diff) | |
download | unit-de631d8c36cebdd69018dfa3ff145ba8b701a2d1.tar.gz unit-de631d8c36cebdd69018dfa3ff145ba8b701a2d1.tar.bz2 |
Fixed format and arguments mismatches in error log messages.
Diffstat (limited to 'src')
-rw-r--r-- | src/nxt_http_static.c | 4 | ||||
-rw-r--r-- | src/nxt_pcre2.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_http_static.c b/src/nxt_http_static.c index fe3e19cc..e603819b 100644 --- a/src/nxt_http_static.c +++ b/src/nxt_http_static.c @@ -192,11 +192,11 @@ nxt_http_static_handler(nxt_task_t *task, nxt_http_request_t *r, if (status != NXT_HTTP_NOT_FOUND) { if (chroot->length > 0) { - nxt_log(task, level, "opening \"%FN\" at \"%FN\" failed %E", + nxt_log(task, level, "opening \"%s\" at \"%V\" failed %E", fname, chroot, file.error); } else { - nxt_log(task, level, "opening \"%FN\" failed %E", + nxt_log(task, level, "opening \"%s\" failed %E", fname, file.error); } } diff --git a/src/nxt_pcre2.c b/src/nxt_pcre2.c index 22c4d2d4..cb51062c 100644 --- a/src/nxt_pcre2.c +++ b/src/nxt_pcre2.c @@ -144,7 +144,7 @@ nxt_regex_match(nxt_regex_t *re, u_char *subject, size_t length, if (pcre2_get_error_message(ret, errptr, ERR_BUF_SIZE) < 0) { nxt_thread_log_error(NXT_LOG_ERR, "pcre2_match() failed: %d on \"%*s\" " - "using \"%V\"", ret, subject, length, subject, + "using \"%V\"", ret, length, subject, &re->pattern); } else { |