Introduced nxt_length() macro.

This commit is contained in:
Valentin Bartenev
2018-06-25 16:51:47 +03:00
parent af31012815
commit 1a52d876f7
28 changed files with 101 additions and 99 deletions

View File

@@ -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,
};