Skip to content

Commit

Permalink
Add chip:: namespace before NodeId in PERSISTENT_KEY_OP macro defined…
Browse files Browse the repository at this point in the history
… in src/lib/support/PersistentStorageMacros.h (#10183)
  • Loading branch information
vivien-apple authored Oct 5, 2021
1 parent 5040da2 commit 655aedf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/support/PersistentStorageMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ constexpr const char kNextAvailableKeyID[] = "StartKeyID";
{ \
constexpr size_t len = std::extent<decltype(keyPrefix)>::value; \
nlSTATIC_ASSERT_PRINT(len > 0, "keyPrefix length must be known at compile time"); \
/* 2 * sizeof(NodeId) to accomodate 2 character for each byte in Node Id */ \
char key[len + 2 * sizeof(NodeId) + 1]; \
/* 2 * sizeof(chip::NodeId) to accomodate 2 character for each byte in Node Id */ \
char key[len + 2 * sizeof(chip::NodeId) + 1]; \
nlSTATIC_ASSERT_PRINT(sizeof(node) <= sizeof(uint64_t), "Node ID size is greater than expected"); \
snprintf(key, sizeof(key), "%s%" PRIx64, keyPrefix, node); \
action; \
Expand Down

0 comments on commit 655aedf

Please sign in to comment.