]> thyrsus.com Git - comparator.git/commitdiff
Make the debug code know about the new types.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 13 Sep 2003 02:00:38 +0000 (02:00 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 13 Sep 2003 02:00:38 +0000 (02:00 +0000)
report.c

index 2285b9d1f39a3934a9c719e2c765d5715ccf11a1..72b05917e79adaef9e1d9353fa1c057974b507e4 100644 (file)
--- 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 */