summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTiago Natel de Moura <t.nateldemoura@f5.com>2020-03-04 13:42:08 +0000
committerTiago Natel de Moura <t.nateldemoura@f5.com>2020-03-04 13:42:08 +0000
commit36578c7b43c5872277ba880b28a8a8a237ab7841 (patch)
tree6a77708118b0492fedcc62f8b89bc3629f012bc8 /src
parent2d0dca52431c08f5f7650ce7bad5a1bc680fa150 (diff)
downloadunit-36578c7b43c5872277ba880b28a8a8a237ab7841.tar.gz
unit-36578c7b43c5872277ba880b28a8a8a237ab7841.tar.bz2
PHP: fixed log format in alert.
Found by Coverity: CID 354832 and CID 354833.
Diffstat (limited to '')
-rw-r--r--src/nxt_php_sapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c
index 3702c371..f5053652 100644
--- a/src/nxt_php_sapi.c
+++ b/src/nxt_php_sapi.c
@@ -892,7 +892,8 @@ nxt_inline void
nxt_php_vcwd_chdir(nxt_unit_request_info_t *req, const nxt_str_t *dir)
{
if (nxt_slow_path(VCWD_CHDIR((char *) dir->start) != 0)) {
- nxt_unit_req_alert(req, "failed to VCWD_CHDIR(%V) %E", dir, nxt_errno);
+ nxt_unit_req_alert(req, "VCWD_CHDIR(%s) failed (%d: %s)",
+ dir->start, errno, strerror(errno));
}
}