Skip to content

Commit

Permalink
arch/arm64: fix build warnings
Browse files Browse the repository at this point in the history
common/arm64_mpu.c:355:13: error: format '%llX' expects argument of type 'long long unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=]
  355 |       _info("MPU-%d, 0x%08llX-0x%08llX SH=%llX AP=%llX XN=%llX\n", i,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
common/arm64_mpu.c:355:29: note: format string is defined here
  355 |       _info("MPU-%d, 0x%08llX-0x%08llX SH=%llX AP=%llX XN=%llX\n", i,
      |                        ~~~~~^
      |                             |
      |                             long long unsigned int
      |                        %08lX
common/arm64_mpu.c:355:13: error: format '%llX' expects argument of type 'long long unsigned int', but argument 5 has type 'long unsigned int' [-Werror=format=]
  355 |       _info("MPU-%d, 0x%08llX-0x%08llX SH=%llX AP=%llX XN=%llX\n", i,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
common/arm64_mpu.c:355:38: note: format string is defined here
  355 |       _info("MPU-%d, 0x%08llX-0x%08llX SH=%llX AP=%llX XN=%llX\n", i,

Signed-off-by: xuxingliang <[email protected]>
  • Loading branch information
XuNeo authored and xiaoxiang781216 committed Oct 14, 2024
1 parent 7288a8d commit f031dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/src/common/arm64_mpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void mpu_dump_region(void)
write_sysreg(i, prselr_el1);
prlar = read_sysreg(prlar_el1);
prbar = read_sysreg(prbar_el1);
_info("MPU-%d, 0x%08X-0x%08X SH=%X AP=%X XN=%X\n", i,
_info("MPU-%d, 0x%08llX-0x%08llX SH=%llX AP=%llX XN=%llX\n", i,
prbar & MPU_RBAR_BASE_MSK, prlar & MPU_RLAR_LIMIT_MSK,
prbar & MPU_RBAR_SH_MSK, prbar & MPU_RBAR_AP_MSK,
prbar & MPU_RBAR_XN_MSK);
Expand Down

0 comments on commit f031dc3

Please sign in to comment.