Skip to content

Commit

Permalink
[attribute-storage] fix fixed-size integer printing (must use PRI... …
Browse files Browse the repository at this point in the history
…macros)
  • Loading branch information
plan44 committed Aug 12, 2023
1 parent f8c1117 commit b597042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/util/attribute-storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ EmberAfStatus setupDynamicEndpointDeclaration(EmberAfEndpointType & endpointType
for (size_t i = 0; i < templateClusterIds.size(); i++)
{
auto cluster = getClusterTypeDefinition(templateEndpointId, templateClusterIds.data()[i], 0);
VerifyOrDieWithMsg(cluster, Support, "cluster 0x%04x template in endpoint %d does not exist", templateClusterIds.data()[i],
templateEndpointId);
VerifyOrDieWithMsg(cluster, Support, "cluster 0x%04" PRIx32 " template in endpoint %" PRIu16 " does not exist",
templateClusterIds.data()[i], templateEndpointId);
// for now, we need to copy the cluster definition, unfortunately.
// TODO: make endpointType use a pointer to a list of EmberAfCluster* instead, so we can re-use cluster definitions
// instead of duplicating them here once for every instance.
Expand Down

0 comments on commit b597042

Please sign in to comment.