Lines Matching refs:total
56 int total = vsnprintf((char *) e->data, reqlen, d->format, ap); in _logger_log_text() local
57 if (total <= 0) { in _logger_log_text()
58 fprintf(stderr, "LOGGER: Failed to vsnprintf a text entry: (total) %d\n", total); in _logger_log_text()
60 e->size = total + 1; // null byte in _logger_log_text()
214 int total; in _logger_parse_ise() local
227 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_ise()
232 return total; in _logger_parse_ise()
236 int total; in _logger_parse_ige() local
243 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_ige()
248 return total; in _logger_parse_ige()
252 int total; in _logger_parse_ee() local
256 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_ee()
263 return total; in _logger_parse_ee()
267 int total; in _logger_parse_ide() local
278 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_ide()
283 return total; in _logger_parse_ide()
288 int total; in _logger_parse_extw() local
292 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_extw()
298 return total; in _logger_parse_extw()
303 int total; in _logger_parse_cne() local
311 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_cne()
316 return total; in _logger_parse_cne()
320 int total; in _logger_parse_cce() local
329 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_cce()
335 return total; in _logger_parse_cce()
395 int total; in _logger_parse_prx_req() local
398 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_prx_req()
406 return total; in _logger_parse_prx_req()
454 int total; in _logger_parse_prx_errbe() local
470 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_prx_errbe()
476 total = snprintf(scratch, LOGGER_PARSE_SCRATCH, in _logger_parse_prx_errbe()
483 return total; in _logger_parse_prx_errbe()
644 int total = 0; in logger_thread_parse_entry() local
647 total = d->parse_cb(e, scratch); in logger_thread_parse_entry()
649 if (total >= LOGGER_PARSE_SCRATCH || total <= 0) { in logger_thread_parse_entry()
653 *scratch_len = total; in logger_thread_parse_entry()
662 int x, total; in logger_thread_write_entry() local
689 total = snprintf(skip_scr, 128, "skipped=%llu\n", (unsigned long long) w->skipped); in logger_thread_write_entry()
690 if (total >= 128 || total <= 0) { in logger_thread_write_entry()
696 bipbuf_push(w->buf, total); in logger_thread_write_entry()
843 int total = 0; in logger_thread_poll_watchers() local
848 total = fwrite(data, 1, data_size, stderr); in logger_thread_poll_watchers()
851 total = ((conn*)w->c)->write(w->c, data, data_size); in logger_thread_poll_watchers()
855 … L_DEBUG("LOGGER: poll() wrote %d to %d (data_size: %d) (bipbuf_used: %d)\n", total, w->sfd, in logger_thread_poll_watchers()
857 if (total == -1) { in logger_thread_poll_watchers()
862 } else if (total == 0) { in logger_thread_poll_watchers()
865 bipbuf_poll(w->buf, total); in logger_thread_poll_watchers()
866 flushed += total; in logger_thread_poll_watchers()