From 25fdb09070700f67faf2bffe99a99e8e63562754 Mon Sep 17 00:00:00 2001 From: Lukasz Gniadzik Date: Tue, 16 Feb 2021 18:58:08 +0100 Subject: [PATCH] Fix bug in log message printed when using SetClock_RealTime() function. --- src/platform/mbed/SystemTimeSupport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/mbed/SystemTimeSupport.cpp b/src/platform/mbed/SystemTimeSupport.cpp index 9fd0c1670e4b58..aa2b251528b33c 100644 --- a/src/platform/mbed/SystemTimeSupport.cpp +++ b/src/platform/mbed/SystemTimeSupport.cpp @@ -113,8 +113,8 @@ Error SetClock_RealTime(uint64_t newCurTime) uint8_t month, dayOfMonth, hour, minute, second; SecondsSinceEpochToCalendarTime(tv.tv_sec, year, month, dayOfMonth, hour, minute, second); ChipLogProgress(DeviceLayer, - "Real time clock set to %ld (%04" PRIu16 "/%02" PRIu8 "/%02" PRIu8 " %02" PRIu8 ":%02" PRIu8 ":%02" PRIu8 - " UTC)", + "Real time clock set to %" PRId64 " (%04" PRIu16 "/%02" PRIu8 "/%02" PRIu8 " %02" PRIu8 ":%02" PRIu8 + ":%02" PRIu8 " UTC)", tv.tv_sec, year, month, dayOfMonth, hour, minute, second); } #endif // CHIP_PROGRESS_LOGGING