MAX_LOG_TRUNK_SIZE
len = slen >= MAX_LOG_TRUNK_SIZE ? MAX_LOG_TRUNK_SIZE : slen;
char log_buf[MAX_LOG_TRUNK_SIZE + 1];