debug: Fix broken DLOG macro calls

This commit is contained in:
Thiago de Arruda 2014-10-22 10:16:52 -03:00
parent 97f0c1eda1
commit 4233446344
2 changed files with 4 additions and 2 deletions

View File

@ -86,6 +86,7 @@ end
output = io.open(outputf, 'wb')
output:write([[
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <assert.h>

View File

@ -73,13 +73,14 @@ void rbuffer_consumed(RBuffer *rbuffer, size_t count)
void rbuffer_produced(RBuffer *rbuffer, size_t count)
{
rbuffer->wpos += count;
DLOG("Received %u bytes from RStream(%p)", (size_t)cnt, rbuffer->rstream);
DLOG("Received %u bytes from RStream(%p)", (size_t)count, rbuffer->rstream);
rbuffer_relocate(rbuffer);
if (rbuffer->rstream && rbuffer->wpos == rbuffer->capacity) {
// The last read filled the buffer, stop reading for now
//
rstream_stop(rbuffer->rstream);
DLOG("Buffer for RStream(%p) is full, stopping it", rstream);
DLOG("Buffer for RStream(%p) is full, stopping it", rbuffer->rstream);
}
}