Skip to content

Commit a103e4f

Browse files
restyled-commitsyunhanw-google
authored andcommitted
Restyled by clang-format
1 parent e01ccae commit a103e4f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/app/ReadClient.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ void ReadClient::Close(CHIP_ERROR aError, bool allowResubscription)
210210
{
211211
if (originalReason == CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT)
212212
{
213-
ChipLogProgress(DataManagement, "ICD device is unreachable, mark subscription as InactiveICDSubscription, retrying is scheduled");
213+
ChipLogProgress(
214+
DataManagement,
215+
"ICD device is unreachable, mark subscription as InactiveICDSubscription, retrying is scheduled");
214216
MoveToState(ClientState::InactiveICDSubscription);
215217
}
216218
return;
@@ -497,7 +499,8 @@ void ReadClient::OnActiveModeNotification()
497499
void ReadClient::OnPeerOperatingModeChange(PeerOperatingMode aMode)
498500
{
499501
VerifyOrDie(mpImEngine->InActiveReadClientList(this));
500-
ChipLogProgress(DataManagement, "Peer operation mode is now %s LIT ICD.", mPeerOperatingMode == PeerOperatingMode::kLITICD ? "a" : "not a");
502+
ChipLogProgress(DataManagement, "Peer operation mode is now %s LIT ICD.",
503+
mPeerOperatingMode == PeerOperatingMode::kLITICD ? "a" : "not a");
501504

502505
// If the peer operating mode is no longer LIT, try to wake up the subscription and do resubscribe when necessary.
503506
if (mPeerOperatingMode == PeerOperatingMode::kNormal)
@@ -725,7 +728,6 @@ void ReadClient::OnResponseTimeout(Messaging::ExchangeContext * apExchangeContex
725728
{
726729
Close(CHIP_ERROR_TIMEOUT);
727730
}
728-
729731
}
730732

731733
CHIP_ERROR ReadClient::ReadICDOperatingModeFromAttributeDataIB(TLV::TLVReader && aReader, PeerOperatingMode & aMode)
@@ -1306,8 +1308,7 @@ void ReadClient::HandleDeviceConnectionFailure(void * context, const Operational
13061308
ReadClient * const _this = static_cast<ReadClient *>(context);
13071309
VerifyOrDie(_this != nullptr);
13081310
CHIP_ERROR err = failureInfo.error;
1309-
ChipLogError(DataManagement, "Failed to establish CASE for re-subscription with error '%" CHIP_ERROR_FORMAT "'",
1310-
err.Format());
1311+
ChipLogError(DataManagement, "Failed to establish CASE for re-subscription with error '%" CHIP_ERROR_FORMAT "'", err.Format());
13111312

13121313
#if CHIP_CONFIG_ENABLE_BUSY_HANDLING_FOR_OPERATIONAL_SESSION_SETUP
13131314
#if CHIP_DETAIL_LOGGING
@@ -1324,7 +1325,7 @@ void ReadClient::HandleDeviceConnectionFailure(void * context, const Operational
13241325

13251326
if (_this->IsPeerLIT() && err == CHIP_ERROR_TIMEOUT)
13261327
{
1327-
err = CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT;
1328+
err = CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT;
13281329
}
13291330
_this->Close(err);
13301331
}

src/app/ReadClient.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ class ReadClient : public Messaging::ExchangeDelegate
497497
*/
498498
Optional<System::Clock::Timeout> GetSubscriptionTimeout();
499499

500-
501500
bool IsPeerLIT() { return mIsPeerLIT; }
502501
PeerOperatingMode GetLITOperatingMode() { return mPeerOperatingMode; }
503502

@@ -665,7 +664,7 @@ class ReadClient : public Messaging::ExchangeDelegate
665664

666665
bool mIsPeerLIT = false;
667666

668-
PeerOperatingMode mPeerOperatingMode = PeerOperatingMode::kNormal ;
667+
PeerOperatingMode mPeerOperatingMode = PeerOperatingMode::kNormal;
669668

670669
// End Of Container (0x18) uses one byte.
671670
static constexpr uint16_t kReservedSizeForEndOfContainer = 1;

0 commit comments

Comments
 (0)