diff --git a/db/db_impl.cc b/db/db_impl.cc index 1ec2afb867..9e53b10d41 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -5,6 +5,7 @@ #include "db/db_impl.h" #include +#include #include #include #include @@ -520,8 +521,8 @@ Status DBImpl::WriteLevel0Table(MemTable* mem, VersionEdit* edit, mutex_.Lock(); } - Log(options_.info_log, "Level-0 table #%llu: %lld bytes %s", - (unsigned long long)meta.number, (unsigned long long)meta.file_size, + Log(options_.info_log, "Level-0 table #%" PRIu64 " : %" PRIu64 " bytes %s", + meta.number, meta.file_size, s.ToString().c_str()); delete iter; pending_outputs_.erase(meta.number); diff --git a/db/version_edit.h b/db/version_edit.h index 137b4b10e0..ce648c8917 100644 --- a/db/version_edit.h +++ b/db/version_edit.h @@ -5,6 +5,7 @@ #ifndef STORAGE_LEVELDB_DB_VERSION_EDIT_H_ #define STORAGE_LEVELDB_DB_VERSION_EDIT_H_ +#include #include #include #include