diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-03-30 14:08:20 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-03-30 14:08:20 +0300 |
commit | 82b899b1365431951afc1da9b2b30065ac98fc94 (patch) | |
tree | 2f206a5e66616a6ad4459851a3f40c070d57630e /src/java/nxt_jni_InputStream.c | |
parent | f94e31b294d69df40b59970ef4c721324cd3596e (diff) | |
download | unit-82b899b1365431951afc1da9b2b30065ac98fc94.tar.gz unit-82b899b1365431951afc1da9b2b30065ac98fc94.tar.bz2 |
Attributing libunit logging function for arguments validation.
Diffstat (limited to '')
-rw-r--r-- | src/java/nxt_jni_InputStream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/nxt_jni_InputStream.c b/src/java/nxt_jni_InputStream.c index 3b74b0c1..fabff685 100644 --- a/src/java/nxt_jni_InputStream.c +++ b/src/java/nxt_jni_InputStream.c @@ -104,7 +104,7 @@ nxt_java_InputStream_readLine(JNIEnv *env, jclass cls, res = nxt_unit_request_read(req, data + off, res); } - nxt_unit_req_debug(req, "readLine '%.*s'", res, (char *) data + off); + nxt_unit_req_debug(req, "readLine '%.*s'", (int) res, (char *) data + off); (*env)->ReleasePrimitiveArrayCritical(env, out, data, 0); @@ -152,7 +152,7 @@ nxt_java_InputStream_read(JNIEnv *env, jclass cls, jlong req_info_ptr, res = nxt_unit_request_read(req, data + off, len); - nxt_unit_req_debug(req, "read '%.*s'", res, (char *) data + off); + nxt_unit_req_debug(req, "read '%.*s'", (int) res, (char *) data + off); (*env)->ReleasePrimitiveArrayCritical(env, b, data, 0); |