Skip to content

Commit

Permalink
debug info
Browse files Browse the repository at this point in the history
Signed-off-by: zhuangbowei.zbw <[email protected]>
  • Loading branch information
WaberZhuang committed Aug 5, 2024
1 parent 921d37a commit 13cf1ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/overlaybd/zfile/crc32/crc32c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ static uint32_t crc32c_hw(const uint8_t *data, size_t nbytes, uint32_t crc) {
uint32_t sum = crc;
size_t offset = 0;

LOG_INFO(VALUE((void*) data), VALUE(nbytes));

// Process bytes one at a time until we reach an 8-byte boundary and can
// start doing aligned 64-bit reads.
static uintptr_t ALIGN_MASK = sizeof(uint64_t) - 1;
Expand Down
1 change: 1 addition & 0 deletions src/overlaybd/zfile/zfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ bool load_jump_table(IFile *file, CompressionFile::HeaderTrailer *pheader_traile
pht->index_offset, index_bytes, pht->opt.dict_size, pht->opt.use_dict);
}
auto ibuf = std::unique_ptr<uint32_t[]>(new uint32_t[pht->index_size]);
LOG_INFO("ibuf address: `", (void *) ibuf.get());
LOG_DEBUG("index_offset: `", pht->index_offset);
ret = file->pread((void *)(ibuf.get()), index_bytes, pht->index_offset);
if (ret < (ssize_t)index_bytes) {
Expand Down

0 comments on commit 13cf1ba

Please sign in to comment.