ref: c4bc48dafd5c43f7cd0563f8fc326b7c752a9296
parent: db4570914fe732af0ab27696767f3c09401aa8d3
author: Ulrich Klauer <ulrich@chirlu.de>
date: Fri Jan 13 17:40:27 EST 2012
Use PRIuPTR for effects chain debugging output
--- a/src/effects.c
+++ b/src/effects.c
@@ -284,7 +284,8 @@
obeg = effp->flows * odone_last;
}
#if DEBUG_EFFECTS_CHAIN
- lsx_report("flow: %5u%5u%5u%5u", pre_idone, pre_odone, idone, obeg);
+ lsx_report("flow: %5" PRIuPTR " %5" PRIuPTR " %5" PRIuPTR " %5" PRIuPTR,
+ pre_idone, pre_odone, idone, obeg);
#endif
effp1->obeg += idone;
if (effp1->obeg == effp1->oend)
@@ -340,7 +341,8 @@
obeg = f * odone_last;
}
#if DEBUG_EFFECTS_CHAIN
- lsx_report("drain: %5u%5u%5u%5u", 0, pre_odone, 0, obeg);
+ lsx_report("drain: %5" PRIuPTR " %5" PRIuPTR " %5" PRIuPTR " %5" PRIuPTR,
+ (size_t)0, pre_odone, (size_t)0, obeg);
#endif
if (!obeg) /* This is the only thing that drain has and flow hasn't */
effstatus = SOX_EOF;