aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-20 18:43:33 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-20 18:43:33 +0100
commit12d861694d01ef1530044e75ce609909118a519d (patch)
tree18d57decc2e9a015a307f985ea3f1fdc5357d2f0 /src
parentMerge pull request #1237 (diff)
downloadmonero-12d861694d01ef1530044e75ce609909118a519d.tar.xz
perf_timer: format string fix for 32 bits
Diffstat (limited to 'src')
-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())
{