fix: correct format specifiers for uint64_t types (#374)

Signed-off-by: syaojun <libevent@yeah.net>
Co-authored-by: rayx <rui.xing@alibaba-inc.com>
This commit is contained in:
Jason 2026-05-19 13:45:32 +08:00 committed by GitHub
parent 18b79586a7
commit d580c08187
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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;