From 37aaf2fccd8db3b18bb303bfdb25b455f5c75c51 Mon Sep 17 00:00:00 2001 From: Chris Mumford Date: Wed, 17 Feb 2021 10:18:12 -0800 Subject: [PATCH] Fix fprintf format string. Using %zu for size_t instead of %ld. PiperOrigin-RevId: 357976882 --- benchmarks/db_bench.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }