From 12d861694d01ef1530044e75ce609909118a519d Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 20 Oct 2016 18:43:33 +0100 Subject: perf_timer: format string fix for 32 bits --- src/common/perf_timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/perf_timer.h') diff --git a/src/common/perf_timer.h b/src/common/perf_timer.h index 3d732012d..5eb5aaaec 100644 --- a/src/common/perf_timer.h +++ b/src/common/perf_timer.h @@ -68,7 +68,7 @@ public: performance_timers->pop_back(); ticks = epee::misc_utils::get_tick_count() - ticks; char s[12]; - snprintf(s, sizeof(s), "%8lu ", ticks); + snprintf(s, sizeof(s), "%8llu ", (unsigned long long)ticks); LOG_PRINT("PERF " << s << std::string(performance_timers->size() * 2, ' ') << " " << name, level); if (performance_timers->empty()) { -- cgit v1.2.3