Skip to content

Commit

Permalink
Use appropriate format strings for logging in door lock cluster.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morozov-5F committed Jan 25, 2022
1 parent 0130496 commit 2516297
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/clusters/door-lock-server/door-lock-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ EmberAfStatus DoorLockServer::createUser(chip::EndpointId endpointId, chip::Fabr
newUserStatus, newUserType, newCredentialRule, newCredentials, newTotalCredentials))
{
emberAfDoorLockClusterPrintln("[createUser] Unable to create user: app error "
"[endpointId=%d,creatorFabricId=%d,userIndex=%d,userName=\"%s\",userUniqueId=0x%x,userStatus="
"[endpointId=%d,creatorFabricId=%d,userIndex=%d,userName=\"%s\",userUniqueId=0x%" PRIx32 ",userStatus="
"%" PRIu8 ",userType=%" PRIu8 ",credentialRule=%" PRIu8 ",totalCredentials=%zu]",
endpointId, creatorFabricIdx, userIndex, newUserName.data(), newUserUniqueId,
to_underlying(newUserStatus), to_underlying(newUserType), to_underlying(newCredentialRule),
Expand All @@ -1185,7 +1185,7 @@ EmberAfStatus DoorLockServer::createUser(chip::EndpointId endpointId, chip::Fabr
}

emberAfDoorLockClusterPrintln("[createUser] User created "
"[endpointId=%d,creatorFabricId=%d,userIndex=%d,userName=\"%s\",userUniqueId=0x%x,userStatus=%"
"[endpointId=%d,creatorFabricId=%d,userIndex=%d,userName=\"%s\",userUniqueId=0x%" PRIx32 ",userStatus=%"
"" PRIu8 ",userType=%" PRIu8 ",credentialRule=%" PRIu8 ",totalCredentials=%zu]",
endpointId, creatorFabricIdx, userIndex, newUserName.data(), newUserUniqueId,
to_underlying(newUserStatus), to_underlying(newUserType), to_underlying(newCredentialRule),
Expand Down Expand Up @@ -1248,7 +1248,7 @@ EmberAfStatus DoorLockServer::modifyUser(chip::EndpointId endpointId, chip::Fabr
{
ChipLogError(Zcl,
"[modifyUser] Unable to modify the user: app error "
"[endpointId=%d,modifierFabric=%d,userIndex=%d,userName=\"%s\",userUniqueId=0x%x,userStatus=%" PRIu8
"[endpointId=%d,modifierFabric=%d,userIndex=%d,userName=\"%s\",userUniqueId=0x%" PRIx32 ",userStatus=%" PRIu8
",userType=%" PRIu8 ",credentialRule=%" PRIu8 "]",
endpointId, modifierFabricIndex, userIndex, newUserName.data(), newUserUniqueId, to_underlying(newUserStatus),
to_underlying(newUserType), to_underlying(newCredentialRule));
Expand All @@ -1257,7 +1257,7 @@ EmberAfStatus DoorLockServer::modifyUser(chip::EndpointId endpointId, chip::Fabr

emberAfDoorLockClusterPrintln(
"[modifyUser] User modified "
"[endpointId=%d,modifierFabric=%d,userIndex=%d,userName=\"%s\",userUniqueId=0x%x,userStatus=%" PRIu8 ","
"[endpointId=%d,modifierFabric=%d,userIndex=%d,userName=\"%s\",userUniqueId=0x%" PRIx32 ",userStatus=%" PRIu8 ","
"userType=%" PRIu8 ",credentialRule=%" PRIu8 "]",
endpointId, modifierFabricIndex, userIndex, newUserName.data(), newUserUniqueId, to_underlying(newUserStatus),
to_underlying(newUserType), to_underlying(newCredentialRule));
Expand Down

0 comments on commit 2516297

Please sign in to comment.