Fix incompatible compilation in Linux server

This commit is contained in:
Kai Liu
2014-02-07 19:47:48 -08:00
parent 161ab42a8a
commit b8ea5e36b3
2 changed files with 4 additions and 4 deletions

View File

@@ -65,8 +65,8 @@ Status Footer::DecodeFrom(Slice* input) {
if (magic != table_magic_number()) {
char buffer[80];
snprintf(buffer, sizeof(buffer) - 1,
"not an sstable (bad magic number --- %#" PRIx64 ")",
magic);
"not an sstable (bad magic number --- %lx)",
(long)magic);
return Status::InvalidArgument(buffer);
}
} else {