From 02f742e436a34b175e578bb4866af3f213c7fa32 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Wed, 26 May 2021 11:29:14 +1000 Subject: [PATCH] * f2b-filter-stats : tune output --- src/filter-test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/filter-test.c b/src/filter-test.c index f0ebcdb..d4c6c72 100644 --- a/src/filter-test.c +++ b/src/filter-test.c @@ -69,12 +69,10 @@ int main(int argc, char *argv[]) { while (fgets(line, sizeof(line), file) != NULL) { read++; + fputs(line, stdout); if ((ftag = f2b_filter_match(filter, line, match, sizeof(match), &score)) > 0) { matched++; - fprintf(stdout, "+ %s (score: %d, tag: %08X)\n", match, score, ftag); - continue; - } else { - fprintf(stdout, "- (no-match): %s", line); + fprintf(stdout, "# match -- addr: %s, score: %d, tag: %08X\n", match, score, ftag); } } fclose(file);