Skip to content

Commit 6fa82f7

Browse files
soburikartben
authored andcommitted
kernel: mmu: Added a cast to avoid format warnings when logging
At runtime, `cbprintf` outputs a warning of the type check of the print format. Added a cast to avoid this warning to the first argument of `device_map()` to `void*`. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent 72623f9 commit 6fa82f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ void k_mem_map_phys_bare(uint8_t **virt_ptr, uintptr_t phys, size_t size, uint32
955955
"wraparound for virtual address %p (size %zu)",
956956
dest_addr, size);
957957

958-
LOG_DBG("arch_mem_map(%p, 0x%lx, %zu, %x) offset %lu", dest_addr,
958+
LOG_DBG("arch_mem_map(%p, 0x%lx, %zu, %x) offset %lu", (void *)dest_addr,
959959
aligned_phys, aligned_size, flags, addr_offset);
960960

961961
arch_mem_map(dest_addr, aligned_phys, aligned_size, flags);

0 commit comments

Comments
 (0)