diff options
Diffstat (limited to '')
-rw-r--r-- | src/nxt_app_log.c | 4 |
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, }; |