From c1f8d735ee7b2cc17a5685cb4c513baaf5bbf839 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 24 Sep 2024 17:55:16 +0200 Subject: Some more logging around fread. --- src/lib/file_group.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc index 56a5c2c59..c0d7e5af9 100644 --- a/src/lib/file_group.cc +++ b/src/lib/file_group.cc @@ -27,6 +27,7 @@ #include "compose.hpp" #include "cross.h" #include "dcpomatic_assert.h" +#include "dcpomatic_log.h" #include "exceptions.h" #include "file_group.h" #include @@ -142,6 +143,7 @@ FileGroup::Result FileGroup::read (uint8_t* buffer, int amount) const { DCPOMATIC_ASSERT (_current_file); + LOG_GENERAL("Group read %1 %2", (uint64_t) buffer, amount); int read = 0; while (true) { @@ -160,6 +162,7 @@ FileGroup::read (uint8_t* buffer, int amount) const eof = true; } + LOG_GENERAL("Read %1 %2", (uint64_t) (buffer + read), to_read); int const this_time = _current_file->read(buffer + read, 1, to_read); read += this_time; _position += this_time; -- cgit v1.2.3