Lines Matching refs:total
178 int total; in _logger_thread_parse_ise() local
191 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_thread_parse_ise()
195 return total; in _logger_thread_parse_ise()
199 int total; in _logger_thread_parse_ige() local
206 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_thread_parse_ige()
210 return total; in _logger_thread_parse_ige()
214 int total; in _logger_thread_parse_ee() local
218 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_thread_parse_ee()
224 return total; in _logger_thread_parse_ee()
230 int total = 0; in logger_thread_parse_entry() local
234 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, "ts=%d.%d gid=%llu %s\n", in logger_thread_parse_entry()
239 total = _logger_thread_parse_ee(e, scratch); in logger_thread_parse_entry()
242 total = _logger_thread_parse_ige(e, scratch); in logger_thread_parse_entry()
245 total = _logger_thread_parse_ise(e, scratch); in logger_thread_parse_entry()
250 if (total >= LOGGER_PARSE_SCRATCH || total <= 0) { in logger_thread_parse_entry()
254 *scratch_len = total + 1; in logger_thread_parse_entry()
263 int x, total; in logger_thread_write_entry() local
290 total = snprintf(skip_scr, 128, "skipped=%llu\n", (unsigned long long) w->skipped); in logger_thread_write_entry()
291 if (total >= 128 || total <= 0) { in logger_thread_write_entry()
297 bipbuf_push(w->buf, total + 1); in logger_thread_write_entry()
443 int total = 0; in logger_thread_poll_watchers() local
448 total = fwrite(data, 1, data_size, stderr); in logger_thread_poll_watchers()
451 total = write(w->sfd, data, data_size); in logger_thread_poll_watchers()
455 … L_DEBUG("LOGGER: poll() wrote %d to %d (data_size: %d) (bipbuf_used: %d)\n", total, w->sfd, in logger_thread_poll_watchers()
457 if (total == -1) { in logger_thread_poll_watchers()
462 } else if (total == 0) { in logger_thread_poll_watchers()
465 bipbuf_poll(w->buf, total); in logger_thread_poll_watchers()
466 flushed += total; in logger_thread_poll_watchers()
644 int total = 0; in logger_log() local
672 total = vsnprintf((char *) e->data, reqlen, d->format, ap); in logger_log()
674 if (total >= reqlen || total <= 0) { in logger_log()
675 fprintf(stderr, "LOGGER: Failed to vsnprintf a text entry: (total) %d\n", total); in logger_log()
678 e->size = total + 1; /* null byte */ in logger_log()
709 L_DEBUG("LOGGER: Requested %d bytes, wrote %d bytes\n", reqlen, total + 1); in logger_log()