summaryrefslogtreecommitdiff
path: root/db/log_reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'db/log_reader.cc')
-rw-r--r--db/log_reader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/log_reader.cc b/db/log_reader.cc
index b770fee..9880279 100644
--- a/db/log_reader.cc
+++ b/db/log_reader.cc
@@ -4,7 +4,7 @@
#include "db/log_reader.h"
-#include <stdio.h>
+#include <cstdio>
#include "leveldb/env.h"
#include "util/coding.h"
@@ -160,7 +160,7 @@ bool Reader::ReadRecord(Slice* record, std::string* scratch) {
default: {
char buf[40];
- snprintf(buf, sizeof(buf), "unknown record type %u", record_type);
+ std::snprintf(buf, sizeof(buf), "unknown record type %u", record_type);
ReportCorruption(
(fragment.size() + (in_fragmented_record ? scratch->size() : 0)),
buf);