From 1e90114aaac469b9aad38fb36bdee682bb84e945 Mon Sep 17 00:00:00 2001 From: Dewal Agarwal Date: Wed, 12 Dec 2018 10:11:37 +0530 Subject: [PATCH] Dlog Print Format Updates Change-Id: I18df9799a37a9f88726c10052caf324e8217fe7f Signed-off-by: Dewal Agarwal --- src/server/legacy/heartrate/HeartRateLogger.cpp | 2 +- src/server/legacy/sleep/SleepLogger.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/legacy/heartrate/HeartRateLogger.cpp b/src/server/legacy/heartrate/HeartRateLogger.cpp index 427fcf1..1c4bbed 100644 --- a/src/server/legacy/heartrate/HeartRateLogger.cpp +++ b/src/server/legacy/heartrate/HeartRateLogger.cpp @@ -110,7 +110,7 @@ bool HeartRateLogger::onTimerExpired(unsigned int timerId, unsigned int interval _W("Starting sensor failed"); __expiredTime = TimeUtil::getTime(); - _I("Measuring starts at %llu", __expiredTime); + _I("Measuring starts at %llu",(long long unsigned int)__expiredTime); return true; } diff --git a/src/server/legacy/sleep/SleepLogger.cpp b/src/server/legacy/sleep/SleepLogger.cpp index b9e5723..036e47c 100644 --- a/src/server/legacy/sleep/SleepLogger.cpp +++ b/src/server/legacy/sleep/SleepLogger.cpp @@ -130,20 +130,20 @@ void SleepLogger::record(uint64_t startTime, uint64_t endTime, int state) if (__startTime == 0) { __startTime = startTime; __endTime = endTime; - _D("Initial event: %llu ~ %llu", __startTime, __endTime); + _D("Initial event: %llu ~ %llu",(long long unsigned int)__startTime,(long long unsigned int)__endTime); return; } if (startTime < __endTime + TIME_GAP) { __endTime = MAX(endTime, __endTime); - _D("Merged event: %llu ~ %llu", __startTime, __endTime); + _D("Merged event: %llu ~ %llu", (long long unsigned int)__startTime, (long long unsigned int)__endTime); return; } __appendQuery(__startTime, __endTime); __startTime = startTime; __endTime = endTime; - _D("Reset event: %llu ~ %llu", __startTime, __endTime); + _D("Reset event: %llu ~ %llu", (long long unsigned int)__startTime, (long long unsigned int)__endTime); } void SleepLogger::flushCache(bool force) -- 2.7.4