From: Eric S. Raymond Date: Sat, 13 Sep 2003 02:00:38 +0000 (+0000) Subject: Make the debug code know about the new types. X-Git-Tag: 1.5 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=f7d32181abb441661bcc37e46c79789e1d88b3be;p=comparator.git Make the debug code know about the new types. --- diff --git a/report.c b/report.c index 2285b9d..72b0591 100644 --- a/report.c +++ b/report.c @@ -103,7 +103,7 @@ static int collapse_ranges(struct match_t *reduced, int nonuniques) printf("Clique beginning at %d:\n", sp - reduced); for (rp = sp->matches; rp < sp->matches + sp->nmatches; rp++) - printf("%s:%d:%d\n", rp->file, rp->hash.start, rp->hash.end); + printf("%s:%d:%d\n", rp->file->name, rp->hash.start, rp->hash.end); } #endif /* DEBUG */ @@ -140,7 +140,7 @@ static int collapse_ranges(struct match_t *reduced, int nonuniques) printf("*** Merged %d into %d\n", tp-reduced, sp-reduced); for (rp=sp->matches; rp < sp->matches+sp->nmatches; rp++) - printf("%s:%d:%d\n",rp->file,rp->hash.start,rp->hash.end); + printf("%s:%d:%d\n",rp->file->name,rp->hash.start,rp->hash.end); #endif /* DEBUG */ removed++; tp->nmatches = 0; @@ -154,7 +154,7 @@ static int collapse_ranges(struct match_t *reduced, int nonuniques) printf("Clique beginning at %d (%d):\n", sp - reduced, sp->nmatches); for (rp = sp->matches; rp < sp->matches + sp->nmatches; rp++) - printf("%s:%d:%d\n", rp->file, rp->hash.start, rp->hash.end); + printf("%s:%d:%d\n", rp->file->name, rp->hash.start, rp->hash.end); } #endif /* DEBUG */