summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-09 21:10:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-09 21:15:16 +0200
commit4439dcde7c04b01a546aedc1e2693439993d022c (patch)
tree9425883bbd3f128f994855ddb4c5edd4d3edd0e7 /src
parentb83f0bb15cf60f018bded68920a423e6918c1d6f (diff)
fix gcc build
Diffstat (limited to 'src')
-rw-r--r--src/timer-ns.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timer-ns.cpp b/src/timer-ns.cpp
index f624ac3e..aed95c41 100644
--- a/src/timer-ns.cpp
+++ b/src/timer-ns.cpp
@@ -1,6 +1,7 @@
#include "nanosecond.inl"
#include "compat/assert.hpp"
#include "compat/debug.hpp"
+#include <cinttypes>
#include <cr/Debug.h>
#include <mg/Functions.h>
@@ -45,7 +46,7 @@ Debug& operator<<(Debug& dbg, const Ns& val)
else if (val > Ns{100})
{
char buf[64];
- std::snprintf(buf, sizeof buf, "%llu_%llu ₙₛ",
+ std::snprintf(buf, sizeof buf, "%" PRIu64 "_%" PRIu64 " ₙₛ",
val.stamp / 1000, val.stamp % 1000);
return dbg;
}