diff --git a/src/lnav_util.hh b/src/lnav_util.hh index 3ecf13c6..b4887b2a 100644 --- a/src/lnav_util.hh +++ b/src/lnav_util.hh @@ -58,7 +58,7 @@ #include "ghc/filesystem.hpp" #if SIZEOF_OFF_T == 8 -#define FORMAT_OFF_T "%qd" +#define FORMAT_OFF_T "%lld" #elif SIZEOF_OFF_T == 4 #define FORMAT_OFF_T "%ld" #else diff --git a/src/relative_time.cc b/src/relative_time.cc index 1f0af007..acf57c90 100644 --- a/src/relative_time.cc +++ b/src/relative_time.cc @@ -830,11 +830,11 @@ size_t duration2str(int64_t millis, std::string &value_out) const char *format; const char *symbol; } intervals[] = { - { 1000, "%03qd%s", "" }, - { 60, "%qd%s", "s" }, - { 60, "%qd%s", "m" }, - { 24, "%qd%s", "h" }, - { 0, "%qd%s", "d" }, + { 1000, "%03lld%s", "" }, + { 60, "%lld%s", "s" }, + { 60, "%lld%s", "m" }, + { 24, "%lld%s", "h" }, + { 0, "%lld%s", "d" }, }; struct rel_interval *curr_interval = intervals;