diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-03-05 17:32:50 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-03-05 17:32:50 +0300 |
commit | 912a49c6091c1fd9b630d2e0966f0fe1b97a3e42 (patch) | |
tree | 5581735807436384796dfd9deff336865c8372e4 /src/nxt_port_memory.c | |
parent | f2090bce21e4fb47d11f992a76ef5c4da74c3233 (diff) | |
download | unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.gz unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.bz2 |
Reduced number of critical log levels.
Diffstat (limited to 'src/nxt_port_memory.c')
-rw-r--r-- | src/nxt_port_memory.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/nxt_port_memory.c b/src/nxt_port_memory.c index fbfefc32..f660b1b4 100644 --- a/src/nxt_port_memory.c +++ b/src/nxt_port_memory.c @@ -124,13 +124,7 @@ nxt_port_mmap_buf_completion(nxt_task_t *task, void *obj, void *data) mp = b->data; -#if (NXT_DEBUG) - if (nxt_slow_path(data != b->parent)) { - nxt_log_alert(task->log, "completion data (%p) != b->parent (%p)", - data, b->parent); - nxt_abort(); - } -#endif + nxt_assert(data == b->parent); mmap_handler = data; hdr = mmap_handler->hdr; @@ -296,8 +290,7 @@ nxt_port_new_port_mmap(nxt_task_t *task, nxt_process_t *process, fd = syscall(SYS_memfd_create, name, MFD_CLOEXEC); if (nxt_slow_path(fd == -1)) { - nxt_log(task, NXT_LOG_CRIT, "memfd_create(%s) failed %E", - name, nxt_errno); + nxt_alert(task, "memfd_create(%s) failed %E", name, nxt_errno); goto remove_fail; } @@ -314,7 +307,7 @@ nxt_port_new_port_mmap(nxt_task_t *task, nxt_process_t *process, nxt_debug(task, "shm_open(%s): %FD", name, fd); if (nxt_slow_path(fd == -1)) { - nxt_log(task, NXT_LOG_CRIT, "shm_open(%s) failed %E", name, nxt_errno); + nxt_alert(task, "shm_open(%s) failed %E", name, nxt_errno); goto remove_fail; } |