diff options
author | Chris Mumford <cmumford@google.com> | 2021-02-17 10:18:12 -0800 |
---|---|---|
committer | Chris Mumford <cmumford@chromium.org> | 2021-02-17 10:25:15 -0800 |
commit | 37aaf2fccd8db3b18bb303bfdb25b455f5c75c51 (patch) | |
tree | b306d4e50b0c5acbb66c1161be4f7179c209ade9 | |
parent | 2a47801868e223fd10af272ed9fbd8b699711aae (diff) | |
download | leveldb-37aaf2fccd8db3b18bb303bfdb25b455f5c75c51.tar.gz |
Fix fprintf format string.
Using %zu for size_t instead of %ld.
PiperOrigin-RevId: 357976882
-rw-r--r-- | benchmarks/db_bench.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/db_bench.cc b/benchmarks/db_bench.cc index b362569..429a61a 100644 --- a/benchmarks/db_bench.cc +++ b/benchmarks/db_bench.cc @@ -679,7 +679,7 @@ class Benchmark { } arg[0].thread->stats.Report(name); if (FLAGS_comparisons) { - fprintf(stdout, "Comparisons: %ld\n", count_comparator_.comparisons()); + fprintf(stdout, "Comparisons: %zu\n", count_comparator_.comparisons()); count_comparator_.reset(); fflush(stdout); } |