diff --git a/src/utils/fileUtilities.c b/src/utils/fileUtilities.c index b02417c..3f38224 100644 --- a/src/utils/fileUtilities.c +++ b/src/utils/fileUtilities.c @@ -13,7 +13,7 @@ void readBytesIntoBuffer(uint8_t* buffer, long numBytes) { file.offset += result; if (result != numBytes) { - fprintf(stderr, "Wanted to read %lu bytes from file but only read %lu bytes: %s\n", numBytes, result, strerror(errno)); + fprintf(stderr, "Wanted to read %lu bytes from file at offset %lu but only read %lu bytes: %s\n", numBytes, file.offset, result, strerror(errno)); exit(1); } }