diff options
Diffstat (limited to 'libs/common_time/common_clock.cpp')
-rw-r--r-- | libs/common_time/common_clock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/common_time/common_clock.cpp b/libs/common_time/common_clock.cpp index c9eb388..ee326e1 100644 --- a/libs/common_time/common_clock.cpp +++ b/libs/common_time/common_clock.cpp @@ -19,6 +19,7 @@ #define LOG_TAG "common_time" #include <utils/Log.h> +#include <inttypes.h> #include <stdint.h> #include <utils/Errors.h> @@ -50,7 +51,7 @@ bool CommonClock::init(uint64_t local_freq) { LinearTransform::reduce(&numer, &denom); if ((numer > UINT32_MAX) || (denom > UINT32_MAX)) { - ALOGE("Overflow in CommonClock::init while trying to reduce %lld/%lld", + ALOGE("Overflow in CommonClock::init while trying to reduce %" PRIu64 "/%" PRIu64, kCommonFreq, local_freq); return false; } |