Skip to content

Commit 0be650e

Browse files
authored
Add ETPRIsize_t support to ExecuTorch for Xtensa
Differential Revision: D68131252 Pull Request resolved: #7895
1 parent 0966d99 commit 0be650e

File tree

3 files changed

+86
-41
lines changed

3 files changed

+86
-41
lines changed

runtime/core/hierarchical_allocator.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,16 @@ class HierarchicalAllocator final {
6262
ET_CHECK_OR_RETURN_ERROR(
6363
memory_id < buffers_.size(),
6464
InvalidArgument,
65-
"id %" PRIu32 " >= %zu",
65+
"id %" PRIu32 " >= %" ET_PRIsize_t,
6666
memory_id,
6767
buffers_.size());
6868
Span<uint8_t> buffer = buffers_[memory_id];
6969
ET_CHECK_OR_RETURN_ERROR(
7070
offset_bytes + size_bytes <= buffer.size(),
7171
MemoryAllocationFailed,
72-
"offset_bytes (%zu) + size_bytes (%zu) >= allocator size (%zu) "
72+
"offset_bytes (%" ET_PRIsize_t ") + size_bytes (%" ET_PRIsize_t
73+
") >= allocator size (%" ET_PRIsize_t
74+
") "
7375
"for memory_id %" PRIu32,
7476
offset_bytes,
7577
size_bytes,

0 commit comments

Comments
 (0)