diff --git a/src/lib/support/PersistentStorageMacros.h b/src/lib/support/PersistentStorageMacros.h index 3b17368f1a0b19..4c9be7ef5778ad 100644 --- a/src/lib/support/PersistentStorageMacros.h +++ b/src/lib/support/PersistentStorageMacros.h @@ -38,8 +38,8 @@ constexpr const char kNextAvailableKeyID[] = "StartKeyID"; { \ constexpr size_t len = std::extent::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; \