Skip to content
Browse files

kernel: mem_domain: fix warning in ASSERT expression

While fixing the ASSERT expressions in mem_domain.c to use
%lx instead of %x for uintptr_t variables, commit
f32330b has overlooked
one ASSERT expression specific to ARMv8-M. This causes
printk compilation warnings for ARMv8-M builds, so we
provide a fix here.

Signed-off-by: Ioannis Glaropoulos <>
  • Loading branch information...
ioannisg authored and nashif committed Jun 26, 2019
1 parent 46ea1df commit 39c8451422e0bb679078815e7892cfe45d9f9334
Showing with 1 addition and 1 deletion.
  1. +1 −1 kernel/mem_domain.c
@@ -47,7 +47,7 @@ static bool sane_partition(const struct k_mem_partition *part,
/* Partitions overlap */
__ASSERT(false, "overlapping partitions <%x...%x>, <%x...%x>",
__ASSERT(false, "overlapping partitions <%lx...%x>, <%lx...%x>",
part->start, last,
parts[i].start, cur_last);
return false;

0 comments on commit 39c8451

Please sign in to comment.
You can’t perform that action at this time.