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>
This commit is contained in:
parent
72623f98f7
commit
6fa82f7e84
1 changed files with 1 additions and 1 deletions
|
@ -955,7 +955,7 @@ void k_mem_map_phys_bare(uint8_t **virt_ptr, uintptr_t phys, size_t size, uint32
|
|||
"wraparound for virtual address %p (size %zu)",
|
||||
dest_addr, size);
|
||||
|
||||
LOG_DBG("arch_mem_map(%p, 0x%lx, %zu, %x) offset %lu", dest_addr,
|
||||
LOG_DBG("arch_mem_map(%p, 0x%lx, %zu, %x) offset %lu", (void *)dest_addr,
|
||||
aligned_phys, aligned_size, flags, addr_offset);
|
||||
|
||||
arch_mem_map(dest_addr, aligned_phys, aligned_size, flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue