Skip to content

Commit b8ea5e3

Browse files
author
Kai Liu
committed
Fix incompatible compilation in Linux server
1 parent 161ab42 commit b8ea5e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

table/format.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Status Footer::DecodeFrom(Slice* input) {
6565
if (magic != table_magic_number()) {
6666
char buffer[80];
6767
snprintf(buffer, sizeof(buffer) - 1,
68-
"not an sstable (bad magic number --- %#" PRIx64 ")",
69-
magic);
68+
"not an sstable (bad magic number --- %lx)",
69+
(long)magic);
7070
return Status::InvalidArgument(buffer);
7171
}
7272
} else {

tools/sst_dump.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ Status SstFileReader::SetTableOptionsByMagicNumber(uint64_t table_magic_number,
135135
} else {
136136
char error_msg_buffer[80];
137137
snprintf(error_msg_buffer, sizeof(error_msg_buffer) - 1,
138-
"Unsupported table magic number --- %#" PRIx64,
139-
table_magic_number);
138+
"Unsupported table magic number --- %lx",
139+
(long)table_magic_number);
140140
return Status::InvalidArgument(error_msg_buffer);
141141
}
142142

0 commit comments

Comments
 (0)