Skip to content

Commit

Permalink
[nxp][platform][k32w0] Remove KVS logs for init phase (#36553)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
2 people authored and pull[bot] committed Nov 20, 2024
1 parent bcfcfa8 commit 4329375
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions src/platform/nxp/k32w0/KeyValueStoreManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,35 +130,19 @@ CHIP_ERROR KeyValueStoreManagerImpl::Init()
CHIP_ERROR err = CHIP_NO_ERROR;

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

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

err = sSubscriptionStorage.Init(Internal::RamStorage::kRamBufferInitialSize);
if (err != CHIP_NO_ERROR)
{
ChipLogProgress(DeviceLayer, "Cannot init KVS subscription storage with id: %d. Error: %s", kNvmId_KvsSubscription,
ErrorStr(err));
}
ReturnErrorOnFailure(err);

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

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

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

0 comments on commit 4329375

Please sign in to comment.