Skip to content

Commit

Permalink
RocksDB: Format uint64 using PRIu64 in db_impl.cc
Browse files Browse the repository at this point in the history
Summary: Use PRIu64 to format uint64 in a portable manner

Test Plan: Run "make all check"

Reviewers: sdong

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D23595
  • Loading branch information
rven1 committed Sep 19, 2014
1 parent e17bc65 commit f445947
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions db/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2356,10 +2356,11 @@ Status DBImpl::BackgroundCompaction(bool* madeProgress,

Version::LevelSummaryStorage tmp;
LogToBuffer(
log_buffer, "[%s] Moved #%lld to level-%d %lld bytes %s: %s\n",
log_buffer,
"[%s] Moved #%" PRIu64 " to level-%d %" PRIu64 " bytes %s: %s\n",
c->column_family_data()->GetName().c_str(),
static_cast<unsigned long long>(f->fd.GetNumber()), c->level() + 1,
static_cast<unsigned long long>(f->fd.GetFileSize()),
f->fd.GetNumber(), c->level() + 1,
f->fd.GetFileSize(),
status.ToString().c_str(), c->input_version()->LevelSummary(&tmp));
c->ReleaseCompactionFiles(status);
*madeProgress = true;
Expand Down

0 comments on commit f445947

Please sign in to comment.