diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-10-23 19:05:44 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-10-23 19:05:44 +0200 |
commit | 31ceb830e56b8b56559ec6fb667d67f397c60bca (patch) | |
tree | 825932967cc4ad1de4e9f52b66387a1460c0f074 | |
parent | Merge pull request #1232 (diff) | |
parent | perf_timer: format string fix for 32 bits (diff) | |
download | monero-31ceb830e56b8b56559ec6fb667d67f397c60bca.tar.xz |
Merge pull request #1239
12d8616 perf_timer: format string fix for 32 bits (moneromooo-monero)
Diffstat (limited to '')
-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()) { |