summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-09-24 17:55:16 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-24 17:55:16 +0200
commitc1f8d735ee7b2cc17a5685cb4c513baaf5bbf839 (patch)
tree5c6dbe0725cad6abe7f417b97bc22368be156f75
parent3ed79bd632560efcc3a0f3992eeb9868b315be58 (diff)
Some more logging around fread.fread-logging
-rw-r--r--src/lib/file_group.cc3
1 files changed, 3 insertions, 0 deletions
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 <dcp/filesystem.h>
@@ -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;