mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
arch/armv7-r: Resolve format‑specifier warnings by using proper macros.
The previous use of `%u` and `%X` for `uint32_t` values triggered compiler warnings. These have been replaced with the appropriate format‑specifier macros to ensure type‑correctness and eliminate the warnings. Signed-off-by: Erkan Vatan <evatan@t3gemstone.org>
This commit is contained in:
parent
f031dc5604
commit
2020035d75
1 changed files with 4 additions and 4 deletions
|
|
@ -542,10 +542,10 @@ void mpu_dump_region(void)
|
|||
drbar = mpu_get_drbar();
|
||||
dracr = mpu_get_dracr();
|
||||
drsr = mpu_get_drsr();
|
||||
_info("MPU-%d, base=0%08X l2size=%"PRIu32" bufferable=%u"
|
||||
"cacheable=%u shareable=%u\n", i, drbar & MPU_RBAR_ADDR_MASK,
|
||||
drsr & MPU_RASR_RSIZE_MASK, dracr & MPU_RACR_B,
|
||||
dracr & MPU_RACR_C, dracr & MPU_RACR_S);
|
||||
_info("MPU-%d, base=0%08"PRIX32" l2size=%"PRIu32" bufferable=%"PRIu32
|
||||
" cacheable=%"PRIu32" shareable=%"PRIu32"\n", i,
|
||||
drbar & MPU_RBAR_ADDR_MASK, drsr & MPU_RASR_RSIZE_MASK,
|
||||
dracr & MPU_RACR_B, dracr & MPU_RACR_C, dracr & MPU_RACR_S);
|
||||
if (drsr & MPU_RASR_ENABLE)
|
||||
{
|
||||
count++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue