aboutsummaryrefslogtreecommitdiff
path: root/pw_allocator
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2021-03-19 15:06:36 -0700
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-04-30 00:33:37 +0000
commitf298de42603bc3825f034c3de9bbfdc58e54e0bd (patch)
tree0cf59bed54387fbcd5b1768b7cf3e113ff3eb40d /pw_allocator
parent19e753a771c45eead0ce1a85c5c0c70d151814e5 (diff)
downloadpigweed-f298de42603bc3825f034c3de9bbfdc58e54e0bd.tar.gz
pw_assert: Switch to the new header names
Bug: 350 Change-Id: Ia395cebedba24c9463e558059ebdb516759253e2 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/38740 Commit-Queue: Wyatt Hepler <hepler@google.com> Reviewed-by: Keir Mierle <keir@google.com>
Diffstat (limited to 'pw_allocator')
-rw-r--r--pw_allocator/block.cc2
-rw-r--r--pw_allocator/freelist_heap.cc2
-rw-r--r--pw_allocator/public/pw_allocator/block.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/pw_allocator/block.cc b/pw_allocator/block.cc
index 7390419ec..c673eb55c 100644
--- a/pw_allocator/block.cc
+++ b/pw_allocator/block.cc
@@ -16,6 +16,8 @@
#include <cstring>
+#include "pw_assert/check.h"
+
namespace pw::allocator {
Status Block::Init(const std::span<std::byte> region, Block** block) {
diff --git a/pw_allocator/freelist_heap.cc b/pw_allocator/freelist_heap.cc
index 750a85773..8d04b49b8 100644
--- a/pw_allocator/freelist_heap.cc
+++ b/pw_allocator/freelist_heap.cc
@@ -16,7 +16,7 @@
#include <cstring>
-#include "pw_assert/assert.h"
+#include "pw_assert/check.h"
#include "pw_log/log.h"
namespace pw::allocator {
diff --git a/pw_allocator/public/pw_allocator/block.h b/pw_allocator/public/pw_allocator/block.h
index fcea0e0e3..30753c08f 100644
--- a/pw_allocator/public/pw_allocator/block.h
+++ b/pw_allocator/public/pw_allocator/block.h
@@ -18,7 +18,6 @@
#include <span>
-#include "pw_assert/assert.h"
#include "pw_status/status.h"
namespace pw::allocator {
@@ -211,7 +210,7 @@ class Block final {
// return false to indicate this block is corrupted.
bool IsValid() const { return CheckStatus() == BlockStatus::VALID; }
- // Uses PW_DCHECK to log information about the reason if a blcok is invalid.
+ // Uses PW_DCHECK to log information about the reason if a block is invalid.
// This function will do nothing if the block is valid.
void CrashIfInvalid();