summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_mp.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-03-05 17:32:50 +0300
committerValentin Bartenev <vbart@nginx.com>2018-03-05 17:32:50 +0300
commit912a49c6091c1fd9b630d2e0966f0fe1b97a3e42 (patch)
tree5581735807436384796dfd9deff336865c8372e4 /src/nxt_mp.c
parentf2090bce21e4fb47d11f992a76ef5c4da74c3233 (diff)
downloadunit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.gz
unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.bz2
Reduced number of critical log levels.
Diffstat (limited to 'src/nxt_mp.c')
-rw-r--r--src/nxt_mp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nxt_mp.c b/src/nxt_mp.c
index 776c96b2..43c0a2c0 100644
--- a/src/nxt_mp.c
+++ b/src/nxt_mp.c
@@ -772,7 +772,6 @@ void
nxt_mp_free(nxt_mp_t *mp, void *p)
{
const char *err;
- nxt_thread_t *thread;
nxt_mp_block_t *block;
nxt_mp_thread_assert(mp);
@@ -809,9 +808,7 @@ nxt_mp_free(nxt_mp_t *mp, void *p)
err = "freed pointer is out of pool: %p";
}
- thread = nxt_thread();
-
- nxt_log(thread->task, NXT_LOG_CRIT, err, p);
+ nxt_thread_log_alert(err, p);
}