Lines Matching refs:len

70 	size_t len;  in zlog_print_time()  local
72len = strftime(timebuf, timebuf_len, "[%d-%b-%Y %H:%M:%S", localtime_r((const time_t *) &tv->tv_se… in zlog_print_time()
74 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time()
76 len += snprintf(timebuf + len, timebuf_len - len, "] "); in zlog_print_time()
77 return len; in zlog_print_time()
106 size_t len = 0; in vzlog() local
113 len = vsnprintf(buf, buf_size, fmt, ap); in vzlog()
115 if (len >= buf_size) { in vzlog()
117 len = buf_size - 1; in vzlog()
119 external_logger(flags & ZLOG_LEVEL_MASK, buf, len); in vzlog()
120 len = 0; in vzlog()
131 len = 0; in vzlog()
133len += snprintf(buf, buf_size, "[%s] %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], funct… in vzlog()
135 len += snprintf(buf, buf_size, "[%s] ", level_names[flags & ZLOG_LEVEL_MASK]); in vzlog()
142 len = zlog_print_time(&tv, buf, buf_size); in vzlog()
146len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", level_names[flags & ZLOG… in vzlog()
148len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", level_names[flags & ZLOG_LEVEL_M… in vzlog()
151 len += snprintf(buf + len, buf_size - len, "%s: ", level_names[flags & ZLOG_LEVEL_MASK]); in vzlog()
155 if (len > buf_size - 1) { in vzlog()
160 len += vsnprintf(buf + len, buf_size - len, fmt, args); in vzlog()
161 if (len >= buf_size) { in vzlog()
168 len += snprintf(buf + len, buf_size - len, ": %s (%d)", strerror(saved_errno), saved_errno); in vzlog()
169 if (len >= buf_size) { in vzlog()
177 len = buf_size - 1; in vzlog()
182 buf[len] = '\0'; in vzlog()
184 buf[len++] = '\n'; in vzlog()
188 buf[len++] = '\n'; in vzlog()
189 zend_quiet_write(zlog_fd > -1 ? zlog_fd : STDERR_FILENO, buf, len); in vzlog()
193 zend_quiet_write(STDERR_FILENO, buf, len); in vzlog()