Fixed fprintf of 64-bit value.
This commit is contained in:
parent
2802398c94
commit
b754fdca72
@ -5,6 +5,7 @@
|
|||||||
#include "leveldb/db.h"
|
#include "leveldb/db.h"
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
#include <cinttypes>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
@ -2289,7 +2290,8 @@ static void BM_LogAndApply(benchmark::State& state) {
|
|||||||
char buf[16];
|
char buf[16];
|
||||||
std::snprintf(buf, sizeof(buf), "%d", num_base_files);
|
std::snprintf(buf, sizeof(buf), "%d", num_base_files);
|
||||||
std::fprintf(stderr,
|
std::fprintf(stderr,
|
||||||
"BM_LogAndApply/%-6s %8zu iters : %9u us (%7.0f us / iter)\n",
|
"BM_LogAndApply/%-6s %8" PRIu64
|
||||||
|
" iters : %9u us (%7.0f us / iter)\n",
|
||||||
buf, state.iterations(), us, ((float)us) / state.iterations());
|
buf, state.iterations(), us, ((float)us) / state.iterations());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user