Go: fixing typo in log messages.

This commit is contained in:
Max Romanov
2018-10-02 19:49:48 +03:00
parent cb1b074493
commit c8b30ef4da
2 changed files with 2 additions and 2 deletions

View File

@@ -203,5 +203,5 @@ nxt_cgo_request_done(uintptr_t req, int res)
void
nxt_cgo_warn(uintptr_t msg, uint32_t msg_len)
{
nxt_unit_warn(NULL, ".*s", (int) msg_len, (char *) msg);
nxt_unit_warn(NULL, "%.*s", (int) msg_len, (char *) msg);
}

View File

@@ -163,7 +163,7 @@ func nxt_go_port_recv(pid C.int, id C.int, buf unsafe.Pointer, buf_size C.int,
GoBytes(oob, oob_size))
if err != nil {
nxt_go_warn("write result %d (%d), %s", n, oobn, err)
nxt_go_warn("read result %d (%d), %s", n, oobn, err)
}
return C.ssize_t(n)