This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 5eef09b4a1 arm/armv8-r: fix compile warning
5eef09b4a1 is described below
commit 5eef09b4a1b72d80ba0102702f4d06496bc2de23
Author: chao an <[email protected]>
AuthorDate: Thu Jan 11 11:55:33 2024 +0800
arm/armv8-r: fix compile warning
armv8-r/arm_gicv3.c: In function 'gic_validate_dist_version':
armv8-r/arm_gicv3.c:730:9: warning: format '%x' expects argument of type
'unsigned int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'}
[-Wformat=]
730 | sinfo("GICD_TYPER = 0x%x\n", typer);
| ^~~~~~~~~~~~~~~~~~~~~ ~~~~~
| |
| uint32_t {aka long unsigned int}
armv8-r/arm_gicv3.c:730:26: note: format string is defined here
730 | sinfo("GICD_TYPER = 0x%x\n", typer);
| ~^
| |
| unsigned int
| %lx
Signed-off-by: chao an <[email protected]>
---
arch/arm/src/armv8-r/arm_gicv3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/src/armv8-r/arm_gicv3.c b/arch/arm/src/armv8-r/arm_gicv3.c
index a351ae68d1..c758b9552b 100644
--- a/arch/arm/src/armv8-r/arm_gicv3.c
+++ b/arch/arm/src/armv8-r/arm_gicv3.c
@@ -727,7 +727,7 @@ static int gic_validate_dist_version(void)
spis = MIN(GICD_TYPER_SPIS(typer), 1020U) - 32;
espis = GICD_TYPER_ESPIS(typer);
- sinfo("GICD_TYPER = 0x%x\n", typer);
+ sinfo("GICD_TYPER = 0x%" PRIu32 "\n", typer);
sinfo("%d SPIs implemented\n", spis);
sinfo("%d Extended SPIs implemented\n", espis);