summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_app_log.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-06-25 16:51:47 +0300
committerValentin Bartenev <vbart@nginx.com>2018-06-25 16:51:47 +0300
commit1a52d876f7e10d07f58deee6faeaf70a11a6110f (patch)
treef69ba903180b3deac3bba2ee7acda9d34f18d73c /src/nxt_app_log.c
parentaf31012815e20f0c92ed6ea803638a16ba47b0c2 (diff)
downloadunit-1a52d876f7e10d07f58deee6faeaf70a11a6110f.tar.gz
unit-1a52d876f7e10d07f58deee6faeaf70a11a6110f.tar.bz2
Introduced nxt_length() macro.
Diffstat (limited to 'src/nxt_app_log.c')
-rw-r--r--src/nxt_app_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_app_log.c b/src/nxt_app_log.c
index 9bd85458..16649ecf 100644
--- a/src/nxt_app_log.c
+++ b/src/nxt_app_log.c
@@ -95,7 +95,7 @@ static nxt_time_string_t nxt_log_error_time_cache = {
(nxt_atomic_uint_t) -1,
nxt_log_error_time,
"%4d/%02d/%02d %02d:%02d:%02d ",
- sizeof("1970/09/28 12:00:00 ") - 1,
+ nxt_length("1970/09/28 12:00:00 "),
NXT_THREAD_TIME_LOCAL,
NXT_THREAD_TIME_MSEC,
};
@@ -115,7 +115,7 @@ static nxt_time_string_t nxt_log_debug_time_cache = {
(nxt_atomic_uint_t) -1,
nxt_log_debug_time,
"%4d/%02d/%02d %02d:%02d:%02d.%03d ",
- sizeof("1970/09/28 12:00:00.000 ") - 1,
+ nxt_length("1970/09/28 12:00:00.000 "),
NXT_THREAD_TIME_LOCAL,
NXT_THREAD_TIME_MSEC,
};