Skip to content

Commit 918f11e

Browse files
[nxp][platform][k32w0] Remove KVS logs for init phase (project-chip#36553)
* [nxp][platform][k32w0] Remove KVS logs for init phase Signed-off-by: marius-alex-tache <marius.tache@nxp.com> * Restyled by whitespace --------- Signed-off-by: marius-alex-tache <marius.tache@nxp.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 96c601d commit 918f11e

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

src/platform/nxp/k32w0/KeyValueStoreManagerImpl.cpp

+5-21
Original file line numberDiff line numberDiff line change
@@ -130,35 +130,19 @@ CHIP_ERROR KeyValueStoreManagerImpl::Init()
130130
CHIP_ERROR err = CHIP_NO_ERROR;
131131

132132
err = sKeysStorage.Init(Internal::RamStorage::kRamBufferInitialSize);
133-
if (err != CHIP_NO_ERROR)
134-
{
135-
ChipLogProgress(DeviceLayer, "Cannot init KVS keys storage with id: %d. Error: %s", kNvmId_KvsKeys, ErrorStr(err));
136-
}
133+
ReturnErrorOnFailure(err);
137134

138135
err = sValuesStorage.Init(Internal::RamStorage::kRamBufferInitialSize, true);
139-
if (err != CHIP_NO_ERROR)
140-
{
141-
ChipLogProgress(DeviceLayer, "Cannot init KVS values storage with id: %d. Error: %s", kNvmId_KvsValues, ErrorStr(err));
142-
}
136+
ReturnErrorOnFailure(err);
143137

144138
err = sSubscriptionStorage.Init(Internal::RamStorage::kRamBufferInitialSize);
145-
if (err != CHIP_NO_ERROR)
146-
{
147-
ChipLogProgress(DeviceLayer, "Cannot init KVS subscription storage with id: %d. Error: %s", kNvmId_KvsSubscription,
148-
ErrorStr(err));
149-
}
139+
ReturnErrorOnFailure(err);
150140

151141
err = sGroupsStorage.Init(Internal::RamStorage::kRamBufferInitialSize, true);
152-
if (err != CHIP_NO_ERROR)
153-
{
154-
ChipLogProgress(DeviceLayer, "Cannot init KVS groups storage with id: %d. Error: %s", kNvmId_KvsGroups, ErrorStr(err));
155-
}
142+
ReturnErrorOnFailure(err);
156143

157144
err = sAclStorage.Init(Internal::RamStorage::kRamBufferInitialSize, true);
158-
if (err != CHIP_NO_ERROR)
159-
{
160-
ChipLogProgress(DeviceLayer, "Cannot init KVS acl storage with id: %d. Error: %s", kNvmId_KvsAcl, ErrorStr(err));
161-
}
145+
ReturnErrorOnFailure(err);
162146

163147
#if CONFIG_CHIP_K32W0_KVS_MOVE_KEYS_TO_SPECIFIC_STORAGE
164148
ChipLogProgress(DeviceLayer, "Moving some keys to dedicated storage");

0 commit comments

Comments
 (0)