From b8ea5e36b3812575cee29bb2b3b0e42a16d4ea4c Mon Sep 17 00:00:00 2001 From: Kai Liu Date: Fri, 7 Feb 2014 19:47:48 -0800 Subject: [PATCH] Fix incompatible compilation in Linux server --- table/format.cc | 4 ++-- tools/sst_dump.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/table/format.cc b/table/format.cc index 3d48b421d..12937b366 100644 --- a/table/format.cc +++ b/table/format.cc @@ -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 { diff --git a/tools/sst_dump.cc b/tools/sst_dump.cc index 6ad08c8a8..7abcb2e5a 100644 --- a/tools/sst_dump.cc +++ b/tools/sst_dump.cc @@ -135,8 +135,8 @@ Status SstFileReader::SetTableOptionsByMagicNumber(uint64_t table_magic_number, } else { char error_msg_buffer[80]; snprintf(error_msg_buffer, sizeof(error_msg_buffer) - 1, - "Unsupported table magic number --- %#" PRIx64, - table_magic_number); + "Unsupported table magic number --- %lx", + (long)table_magic_number); return Status::InvalidArgument(error_msg_buffer); }