aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-10-23 19:05:44 +0200
committerRiccardo Spagni <ric@spagni.net>2016-10-23 19:05:44 +0200
commit31ceb830e56b8b56559ec6fb667d67f397c60bca (patch)
tree825932967cc4ad1de4e9f52b66387a1460c0f074
parentMerge pull request #1232 (diff)
parentperf_timer: format string fix for 32 bits (diff)
downloadmonero-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.h2
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())
{