From f171faa240ccd12ac05d54b7ea0a8c29d2f1d9d6 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 15 Sep 2015 14:44:16 +0300 Subject: [PATCH] Fix printf format for size_t --- utilities/checkpoint/checkpoint.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/checkpoint/checkpoint.cc b/utilities/checkpoint/checkpoint.cc index 1bc44859f..6e6fac004 100644 --- a/utilities/checkpoint/checkpoint.cc +++ b/utilities/checkpoint/checkpoint.cc @@ -24,6 +24,7 @@ #include "rocksdb/env.h" #include "rocksdb/transaction_log.h" #include "util/file_util.h" +#include "port/port.h" namespace rocksdb { @@ -131,7 +132,7 @@ Status CheckpointImpl::CreateCheckpoint(const std::string& checkpoint_dir) { (type == kDescriptorFile) ? manifest_file_size : 0); } } - Log(db_->GetOptions().info_log, "Number of log files %ld", + Log(db_->GetOptions().info_log, "Number of log files %" ROCKSDB_PRIszt, live_wal_files.size()); // Link WAL files. Copy exact size of last one because it is the only one