diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-20 18:43:33 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-20 18:43:33 +0100 |
commit | 12d861694d01ef1530044e75ce609909118a519d (patch) | |
tree | 18d57decc2e9a015a307f985ea3f1fdc5357d2f0 /src/common/perf_timer.h | |
parent | Merge pull request #1237 (diff) | |
download | monero-12d861694d01ef1530044e75ce609909118a519d.tar.xz |
perf_timer: format string fix for 32 bits
Diffstat (limited to 'src/common/perf_timer.h')
-rw-r--r-- | src/common/perf_timer.h | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |