Mercurial > libavutil.hg
comparison log.c @ 1001:00ee3f0ffe6d libavutil
Make sure "Last message repeated" is printed.
author | michael |
---|---|
date | Wed, 28 Jul 2010 12:08:26 +0000 |
parents | 1cf2ecdd1127 |
children | fd2dd26fab8a |
comparison
equal
deleted
inserted
replaced
1000:f9e8cd74a5f4 | 1001:00ee3f0ffe6d |
---|---|
103 vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl); | 103 vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl); |
104 | 104 |
105 print_prefix= line[strlen(line)-1] == '\n'; | 105 print_prefix= line[strlen(line)-1] == '\n'; |
106 if(print_prefix && !strcmp(line, prev)){ | 106 if(print_prefix && !strcmp(line, prev)){ |
107 count++; | 107 count++; |
108 fprintf(stderr, " Last message repeated %d times\r", count); | |
108 return; | 109 return; |
109 } | 110 } |
110 if(count>0){ | 111 if(count>0){ |
111 fprintf(stderr, " Last message repeated %d times\n", count); | 112 fprintf(stderr, " Last message repeated %d times\n", count); |
112 count=0; | 113 count=0; |