summaryrefslogtreecommitdiff
path: root/db/leveldbutil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'db/leveldbutil.cc')
-rw-r--r--db/leveldbutil.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/db/leveldbutil.cc b/db/leveldbutil.cc
index 55cdcc5..95ee897 100644
--- a/db/leveldbutil.cc
+++ b/db/leveldbutil.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
-#include <stdio.h>
+#include <cstdio>
#include "leveldb/dumpfile.h"
#include "leveldb/env.h"
@@ -28,7 +28,7 @@ bool HandleDumpCommand(Env* env, char** files, int num) {
for (int i = 0; i < num; i++) {
Status s = DumpFile(env, files[i], &printer);
if (!s.ok()) {
- fprintf(stderr, "%s\n", s.ToString().c_str());
+ std::fprintf(stderr, "%s\n", s.ToString().c_str());
ok = false;
}
}
@@ -39,9 +39,10 @@ bool HandleDumpCommand(Env* env, char** files, int num) {
} // namespace leveldb
static void Usage() {
- fprintf(stderr,
- "Usage: leveldbutil command...\n"
- " dump files... -- dump contents of specified files\n");
+ std::fprintf(
+ stderr,
+ "Usage: leveldbutil command...\n"
+ " dump files... -- dump contents of specified files\n");
}
int main(int argc, char** argv) {