From a0d08b8277e75dd7264bae62fcce51fa7cd33699 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 17 Apr 2021 11:32:04 -0400 Subject: [PATCH] More debug in read_into --- src/zm_buffer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/zm_buffer.cpp b/src/zm_buffer.cpp index b270d993f..b4b970eb3 100644 --- a/src/zm_buffer.cpp +++ b/src/zm_buffer.cpp @@ -65,8 +65,9 @@ unsigned int Buffer::expand(unsigned int count) { int Buffer::read_into(int sd, unsigned int bytes) { // Make sure there is enough space this->expand(bytes); - int bytes_read = read(sd, mTail, bytes); - if ( bytes_read > 0 ) { + Debug(3, "Reading %u btes", bytes); + int bytes_read = ::read(sd, mTail, bytes); + if (bytes_read > 0) { mTail += bytes_read; mSize += bytes_read; }