Skip to content

Commit

Permalink
Merge pull request project-chip#53 from lukgni/system_time_log_bug
Browse files Browse the repository at this point in the history
Fix bug in log message printed when using SetClock_RealTime() function.
  • Loading branch information
pan- authored Feb 16, 2021
2 parents 01916cf + 25fdb09 commit 023c068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/mbed/SystemTimeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 023c068

Please sign in to comment.