From f71dc71f8f0f1e3e1a374d41adb3f197626b43fc Mon Sep 17 00:00:00 2001 From: jeongyunl <127351534+jeongyunl@users.noreply.github.com> Date: Mon, 8 Jan 2024 05:33:29 -0500 Subject: [PATCH] use portable PRIu64 macro instead of %lu for uint64_t (#5) --- examples/ulog_info.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/ulog_info.cpp b/examples/ulog_info.cpp index 3d8f3f0..c264cac 100644 --- a/examples/ulog_info.cpp +++ b/examples/ulog_info.cpp @@ -4,6 +4,7 @@ ****************************************************************************/ #include +#include #include #include #include @@ -108,8 +109,8 @@ int main(int argc, char** argv) if (logging.hasTag()) { tag_str = std::to_string(logging.tag()) + " "; } - printf(" %s<%s> %lu %s\n", tag_str.c_str(), logging.logLevelStr().c_str(), logging.timestamp(), - logging.message().c_str()); + printf(" %s<%s> %" PRIu64 " %s\n", tag_str.c_str(), logging.logLevelStr().c_str(), + logging.timestamp(), logging.message().c_str()); } // Params (init, after, defaults)