ref: 0043259390926e5418e7ae5008f06744ec09f843
parent: 779fd7d2ad35da56ec45f1f9bba9789ffed59f49
author: robs <robs>
date: Thu Feb 8 06:53:43 EST 2007
Push large-loop debug messages into the debug-more category
--- a/src/sox.c
+++ b/src/sox.c
@@ -1307,7 +1307,7 @@
* starts with an empty output buffer.
*/
if (efftab[e].odone < efftab[e].olen) {
- st_debug("Breaking out of loop to flush buffer");
+ st_debug_more("Breaking out of loop to flush buffer");
break;
}
}
@@ -1441,8 +1441,8 @@
*/
idone = efftab[e - 1].olen - efftab[e - 1].odone;
odone = ST_BUFSIZ - efftab[e].olen;
- st_debug("pre %s idone=%d, odone=%d", efftab[e].name, idone, odone);
- st_debug("pre %s odone1=%d, olen1=%d odone=%d olen=%d", efftab[e].name, efftab[e-1].odone, efftab[e-1].olen, efftab[e].odone, efftab[e].olen);
+ st_debug_more("pre %s idone=%d, odone=%d", efftab[e].name, idone, odone);
+ st_debug_more("pre %s odone1=%d, olen1=%d odone=%d olen=%d", efftab[e].name, efftab[e-1].odone, efftab[e-1].olen, efftab[e].odone, efftab[e].olen);
effstatus = flow(&efftab[e],
&efftab[e - 1].obuf[efftab[e - 1].odone],
@@ -1453,8 +1453,8 @@
efftab[e - 1].odone += idone;
/* Don't update efftab[e].odone as we didn't consume data */
efftab[e].olen += odone;
- st_debug("post %s idone=%d, odone=%d", efftab[e].name, idone, odone);
- st_debug("post %s odone1=%d, olen1=%d odone=%d olen=%d", efftab[e].name, efftab[e-1].odone, efftab[e-1].olen, efftab[e].odone, efftab[e].olen);
+ st_debug_more("post %s idone=%d, odone=%d", efftab[e].name, idone, odone);
+ st_debug_more("post %s odone1=%d, olen1=%d odone=%d olen=%d", efftab[e].name, efftab[e-1].odone, efftab[e-1].olen, efftab[e].odone, efftab[e].olen);
done = idone + odone;
} else {
@@ -1473,8 +1473,8 @@
/* left */
idonel = (idone + 1) / 2; /* odd-length logic */
odonel = odone / 2;
- st_debug("pre %s idone=%d, odone=%d", efftab[e].name, idone, odone);
- st_debug("pre %s odone1=%d, olen1=%d odone=%d olen=%d", efftab[e].name, efftab[e - 1].odone, efftab[e - 1].olen, efftab[e].odone, efftab[e].olen);
+ st_debug_more("pre %s idone=%d, odone=%d", efftab[e].name, idone, odone);
+ st_debug_more("pre %s odone1=%d, olen1=%d odone=%d olen=%d", efftab[e].name, efftab[e - 1].odone, efftab[e - 1].olen, efftab[e].odone, efftab[e].olen);
effstatusl = flow(&efftab[e],
ibufl, obufl, (st_size_t *)&idonel,
@@ -1498,8 +1498,8 @@
efftab[e-1].odone += idonel + idoner;
/* Don't zero efftab[e].odone since nothing has been consumed yet */
efftab[e].olen += odonel + odoner;
- st_debug("post %s idone=%d, odone=%d", efftab[e].name, idone, odone);
- st_debug("post %s odone1=%d, olen1=%d odone=%d olen=%d", efftab[e].name, efftab[e - 1].odone, efftab[e - 1].olen, efftab[e].odone, efftab[e].olen);
+ st_debug_more("post %s idone=%d, odone=%d", efftab[e].name, idone, odone);
+ st_debug_more("post %s odone1=%d, olen1=%d odone=%d olen=%d", efftab[e].name, efftab[e - 1].odone, efftab[e - 1].olen, efftab[e].odone, efftab[e].olen);
done = idonel + idoner + odonel + odoner;