Skip to content

Commit

Permalink
Fix printing 64-bit integer types
Browse files Browse the repository at this point in the history
  • Loading branch information
kraj committed Oct 21, 2023
1 parent 068d5ee commit 72e57a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions db/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "db/db_impl.h"

#include <algorithm>
#include <cinttypes>
#include <atomic>
#include <cstdint>
#include <cstdio>
Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions db/version_edit.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef STORAGE_LEVELDB_DB_VERSION_EDIT_H_
#define STORAGE_LEVELDB_DB_VERSION_EDIT_H_

#include <cstdint>
#include <set>
#include <utility>
#include <vector>
Expand Down

0 comments on commit 72e57a7

Please sign in to comment.