Skip to content

Commit 0ea614e

Browse files
authored
Removing printing error number (#32611)
which may cause compilation error due to its formation could be long or int depending on the platform
1 parent c79582d commit 0ea614e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/chef/common/clusters/door-lock/chef-lock-endpoint.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ bool LockEndpoint::weekDayScheduleForbidsAccess(uint16_t userIndex, bool * haveS
590590
auto chipError = chip::System::SystemClock().GetClock_RealTimeMS(cTMs);
591591
if (chipError != CHIP_NO_ERROR)
592592
{
593-
ChipLogError(Zcl, "Lock App: unable to get current time to check user schedules [endpointId=%d,error=%d (%s)]", mEndpointId,
594-
chipError.AsInteger(), chipError.AsString());
593+
ChipLogError(Zcl, "Lock App: unable to get current time to check user schedules [endpointId=%d (%s)]", mEndpointId,
594+
chipError.AsString());
595595
return true;
596596
}
597597
time_t unixEpoch = std::chrono::duration_cast<chip::System::Clock::Seconds32>(cTMs).count();
@@ -637,8 +637,8 @@ bool LockEndpoint::yearDayScheduleForbidsAccess(uint16_t userIndex, bool * haveS
637637
auto chipError = chip::System::SystemClock().GetClock_RealTimeMS(cTMs);
638638
if (chipError != CHIP_NO_ERROR)
639639
{
640-
ChipLogError(Zcl, "Lock App: unable to get current time to check user schedules [endpointId=%d,error=%d (%s)]", mEndpointId,
641-
chipError.AsInteger(), chipError.AsString());
640+
ChipLogError(Zcl, "Lock App: unable to get current time to check user schedules [endpointId=%d (%s)]", mEndpointId,
641+
chipError.AsString());
642642
return true;
643643
}
644644
auto unixEpoch = std::chrono::duration_cast<chip::System::Clock::Seconds32>(cTMs).count();

0 commit comments

Comments
 (0)