Replace %llu with format macros in ParsedInternalKey::DebugString())

Test Plan: successfully compiled the code

Reviewers: sdong

Reviewed By: sdong

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D40233
This commit is contained in:
Poornima Chozhiyath Raman 2015-06-16 22:26:34 -07:00
parent 40f562e747
commit f06be62fd2

View File

@ -8,6 +8,11 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors. // found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/dbformat.h" #include "db/dbformat.h"
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <stdio.h> #include <stdio.h>
#include "port/port.h" #include "port/port.h"
#include "util/coding.h" #include "util/coding.h"
@ -36,9 +41,8 @@ void AppendInternalKey(std::string* result, const ParsedInternalKey& key) {
std::string ParsedInternalKey::DebugString(bool hex) const { std::string ParsedInternalKey::DebugString(bool hex) const {
char buf[50]; char buf[50];
snprintf(buf, sizeof(buf), "' @ %llu : %d", snprintf(buf, sizeof(buf), "' @ %" PRIu64 ": %d", sequence,
(unsigned long long) sequence, static_cast<int>(type));
int(type));
std::string result = "'"; std::string result = "'";
result += user_key.ToString(hex); result += user_key.ToString(hex);
result += buf; result += buf;