void debug_process_error(zs_scanner_t *s) { if (s->stop == true) { printf("LINE(%03"PRIu64") ERROR(%s) FILE(%s) NEAR(%s)\n", s->line_counter, zs_strerror(s->error_code), s->file.name, s->buffer); } else { printf("LINE(%03"PRIu64") WARNING(%s) FILE(%s) NEAR(%s)\n", s->line_counter, zs_strerror(s->error_code), s->file.name, s->buffer); } fflush(stdout); }
/* Global instance of RR scanner. */ static void parse_err(zs_scanner_t *s) { fprintf(stderr, "failed to parse RDATA: %s\n", zs_strerror(s->error.code)); }