Skip to content

Commit 861235a

Browse files
DeHessjhedberg
authored andcommitted
coding guidelines: comply with MISRA Rule 11.6
removed unneeded conversions from integer to pointer Signed-off-by: Hess Nathan <[email protected]>
1 parent 72b2031 commit 861235a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arch/x86/core/x86_mmu.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,8 @@ static int range_map(void *virt, uintptr_t phys, size_t size,
11691169
{
11701170
int ret = 0, ret2;
11711171

1172-
LOG_DBG("%s: %p -> %p (%zu) flags " PRI_ENTRY " mask "
1173-
PRI_ENTRY " opt 0x%x", __func__, (void *)phys, virt, size,
1172+
LOG_DBG("%s: 0x%" PRIxPTR " -> %p (%zu) flags " PRI_ENTRY " mask "
1173+
PRI_ENTRY " opt 0x%x", __func__, phys, virt, size,
11741174
entry_flags, mask, options);
11751175

11761176
#ifdef CONFIG_X86_64
@@ -1781,8 +1781,8 @@ static inline int apply_region(pentry_t *ptables, void *start,
17811781
__pinned_func
17821782
static void set_stack_perms(struct k_thread *thread, pentry_t *ptables)
17831783
{
1784-
LOG_DBG("update stack for thread %p's ptables at %p: %p (size %zu)",
1785-
thread, ptables, (void *)thread->stack_info.start,
1784+
LOG_DBG("update stack for thread %p's ptables at %p: 0x%" PRIxPTR " (size %zu)",
1785+
thread, ptables, thread->stack_info.start,
17861786
thread->stack_info.size);
17871787
apply_region(ptables, (void *)thread->stack_info.start,
17881788
thread->stack_info.size,
@@ -1929,8 +1929,8 @@ int arch_mem_domain_thread_add(struct k_thread *thread)
19291929
}
19301930

19311931
thread->arch.ptables = z_mem_phys_addr(domain->arch.ptables);
1932-
LOG_DBG("set thread %p page tables to %p", thread,
1933-
(void *)thread->arch.ptables);
1932+
LOG_DBG("set thread %p page tables to 0x%" PRIxPTR, thread,
1933+
thread->arch.ptables);
19341934

19351935
/* Check if we're doing a migration from a different memory domain
19361936
* and have to remove permissions from its old domain.

0 commit comments

Comments
 (0)