[PATCH 2/3] bsp/mpc55xxevb: Fix format warning

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Sep 5 05:49:00 UTC 2018


Close #3504.
---
 bsps/powerpc/mpc55xxevb/dev/dspi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bsps/powerpc/mpc55xxevb/dev/dspi.c b/bsps/powerpc/mpc55xxevb/dev/dspi.c
index f6edb560b0..505cd703e7 100644
--- a/bsps/powerpc/mpc55xxevb/dev/dspi.c
+++ b/bsps/powerpc/mpc55xxevb/dev/dspi.c
@@ -31,6 +31,8 @@
 
 #include <rtems/status-checks.h>
 
+#include <inttypes.h>
+
 #define MPC55XX_DSPI_FIFO_SIZE 4
 
 #define MPC55XX_DSPI_CTAR_NUMBER 8
@@ -119,7 +121,7 @@ static void mpc55xx_dspi_edma_done( edma_channel_context *ctx, uint32_t error_st
 	rtems_semaphore_release( e->id);
 
 	if (error_status != 0) {
-		RTEMS_SYSLOG_ERROR( "eDMA error: 0x%08x\n", error_status);
+		RTEMS_SYSLOG_ERROR( "eDMA error: 0x%08" PRIx32 "\n", error_status);
 	}
 }
 
-- 
2.13.7




More information about the devel mailing list