diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-10-22 10:16:52 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-10-22 11:26:43 -0300 |
commit | 42334463447e884b9a1198be599d734fbe2d1eb7 (patch) | |
tree | d9735f85d20d043c0bab500f8fe902bde5cd5b46 | |
parent | 97f0c1eda19f5a2f8c13ba2cb1c8a1e60ed52c2d (diff) | |
download | rneovim-42334463447e884b9a1198be599d734fbe2d1eb7.tar.gz rneovim-42334463447e884b9a1198be599d734fbe2d1eb7.tar.bz2 rneovim-42334463447e884b9a1198be599d734fbe2d1eb7.zip |
debug: Fix broken DLOG macro calls
-rw-r--r-- | scripts/msgpack-gen.lua | 1 | ||||
-rw-r--r-- | src/nvim/os/rstream.c | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/msgpack-gen.lua b/scripts/msgpack-gen.lua index ba962d69d1..aa3aaf40fa 100644 --- a/scripts/msgpack-gen.lua +++ b/scripts/msgpack-gen.lua @@ -86,6 +86,7 @@ end output = io.open(outputf, 'wb') output:write([[ +#include <inttypes.h> #include <stdbool.h> #include <stdint.h> #include <assert.h> diff --git a/src/nvim/os/rstream.c b/src/nvim/os/rstream.c index 8cfd9d1b75..d96b3d931c 100644 --- a/src/nvim/os/rstream.c +++ b/src/nvim/os/rstream.c @@ -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); } } |