mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
debug: Fix broken DLOG macro calls
This commit is contained in:
parent
97f0c1eda1
commit
4233446344
@ -86,6 +86,7 @@ end
|
|||||||
output = io.open(outputf, 'wb')
|
output = io.open(outputf, 'wb')
|
||||||
|
|
||||||
output:write([[
|
output:write([[
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -73,13 +73,14 @@ void rbuffer_consumed(RBuffer *rbuffer, size_t count)
|
|||||||
void rbuffer_produced(RBuffer *rbuffer, size_t count)
|
void rbuffer_produced(RBuffer *rbuffer, size_t count)
|
||||||
{
|
{
|
||||||
rbuffer->wpos += 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);
|
rbuffer_relocate(rbuffer);
|
||||||
if (rbuffer->rstream && rbuffer->wpos == rbuffer->capacity) {
|
if (rbuffer->rstream && rbuffer->wpos == rbuffer->capacity) {
|
||||||
// The last read filled the buffer, stop reading for now
|
// The last read filled the buffer, stop reading for now
|
||||||
|
//
|
||||||
rstream_stop(rbuffer->rstream);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user