X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=cli.c;h=f34942f04cfb136286882874ed0cb2860a4f23de;hb=ab1afc64af3dcde9c7c2fcfd1351d4eb9987d7a7;hp=be9af383e0745cdbd4448d5be14db86e4e301c75;hpb=f040b1fe921a666514b59f0374817832e11bca2d;p=innduct.git diff --git a/cli.c b/cli.c index be9af38..f34942f 100644 --- a/cli.c +++ b/cli.c @@ -329,17 +329,17 @@ static void dump_input_file(FILE *f, const CliCommand *c, free(dipf); if (ipf) { - DUMPV("%d", ipf->counts.,read_ok); - DUMPV("%d", ipf->counts.,read_blank); - DUMPV("%d", ipf->counts.,read_err); - DUMPV("%d", ipf->counts.,nooffer_missing); + DUMPV("%d", ipf->counts.,events[read_ok]); + DUMPV("%d", ipf->counts.,events[read_blank]); + DUMPV("%d", ipf->counts.,events[read_err]); + DUMPV("%d", ipf->counts.,events[nooffer_missing]); } fprintf(f,"\n"); if (ipf) { ArtState state; const char *const *statename; for (state=0, statename=artstate_names; *statename; state++,statename++) { #define RC_DUMP_FMT(x) " " #x "=%d" -#define RC_DUMP_VAL(x) ,ipf->counts.counts[state][RC_##x] +#define RC_DUMP_VAL(x) ,ipf->counts.results[state][RC_##x] fprintf(f,"input %s counts %-11s" RESULT_COUNTS(RC_DUMP_FMT,RC_DUMP_FMT) "\n", wh, *statename