Skip to content

Commit f171faa

Browse files
committed
Fix printf format for size_t
1 parent f3170b6 commit f171faa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utilities/checkpoint/checkpoint.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "rocksdb/env.h"
2525
#include "rocksdb/transaction_log.h"
2626
#include "util/file_util.h"
27+
#include "port/port.h"
2728

2829
namespace rocksdb {
2930

@@ -131,7 +132,7 @@ Status CheckpointImpl::CreateCheckpoint(const std::string& checkpoint_dir) {
131132
(type == kDescriptorFile) ? manifest_file_size : 0);
132133
}
133134
}
134-
Log(db_->GetOptions().info_log, "Number of log files %ld",
135+
Log(db_->GetOptions().info_log, "Number of log files %" ROCKSDB_PRIszt,
135136
live_wal_files.size());
136137

137138
// Link WAL files. Copy exact size of last one because it is the only one

0 commit comments

Comments
 (0)