[MN-dev] [mndiff]: r167 - trunk/ffvotetov/ffvotetov.c

michael subversion at mplayerhq.hu
Wed Dec 16 02:10:39 CET 2009


Author: michael
Date: Wed Dec 16 02:10:39 2009
New Revision: 167

Log:
send debug output to stderr so it can be filtered out

Modified:
   trunk/ffvotetov/ffvotetov.c

Modified: trunk/ffvotetov/ffvotetov.c
==============================================================================
--- trunk/ffvotetov/ffvotetov.c	Wed Dec 16 02:09:18 2009	(r166)
+++ trunk/ffvotetov/ffvotetov.c	Wed Dec 16 02:10:39 2009	(r167)
@@ -130,7 +130,7 @@ void ranked_pairs(int pair_ranking_matri
                 for(k=0; k<canditate_count; k++){
                     int64_t diff= ((int64_t)pair_matrix[j][k]<<24) - pair_matrix[k][j];
                     if(diff==max){
-                        printf("  Cycle, ignoring pair %d %d with score of %lld\n", j, k, max);
+                        fprintf(stderr, "  Cycle, ignoring pair %d %d with score of %lld\n", j, k, max);
                         pair_ranking_matrix[j][k] =
                         pair_ranking_matrix[k][j] = 0;
                     }
@@ -251,7 +251,7 @@ int main(){
             }
             vote[cand_idx]= num;
             last_num=num;
-            printf("Parsed as:%d %s\n", num, p);
+            fprintf(stderr, "Parsed as:%d %s\n", num, p);
         }
     }
     add_vote(vote);


More information about the Mndiff-dev mailing list