mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-03 16:05:24 -04:00
More debug in read_into
This commit is contained in:
1 parent
1d034b16dd
commit
a0d08b8277
1 file changed
+3
-2
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user