From d580c08187877a0003cd399cf367a658788aa4a7 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 19 May 2026 13:45:32 +0800 Subject: [PATCH] fix: correct format specifiers for uint64_t types (#374) Signed-off-by: syaojun Co-authored-by: rayx --- src/core/framework/index_mapping.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/framework/index_mapping.cc b/src/core/framework/index_mapping.cc index ed82466..d74806b 100644 --- a/src/core/framework/index_mapping.cc +++ b/src/core/framework/index_mapping.cc @@ -135,7 +135,7 @@ int IndexMapping::create(const std::string &path, size_t seg_meta_capacity) { int IndexMapping::init_meta_section() { if (current_header_start_offset_ % ailego::MemoryHelper::PageSize() != 0) { - LOG_ERROR("File offset %zu is not a multiple of the page size: %zu", + LOG_ERROR("File offset %llu is not a multiple of the page size: %zu", current_header_start_offset_, ailego::MemoryHelper::PageSize()); return IndexError_InvalidValue; } @@ -461,7 +461,7 @@ int IndexMapping::flush(void) { auto header = item.second; if (file_.write(header_start_offset, header, header->content_offset) != header->content_offset) { - LOG_ERROR("Failed to write segment, size %lu, %s", + LOG_ERROR("Failed to write segment, size %llu, %s", header->content_offset, ailego::FileHelper::GetLastErrorString().c_str()); return IndexError_WriteData;