[rtems commit] bsp/mpc55xxevb: Fix format warning
Sebastian Huber
sebh at rtems.org
Thu Sep 6 05:05:14 UTC 2018
Module: rtems
Branch: master
Commit: 9a21fc73834bf7300627c74200f451bcc1420a98
Changeset: http://git.rtems.org/rtems/commit/?id=9a21fc73834bf7300627c74200f451bcc1420a98
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Sep 5 07:38:13 2018 +0200
bsp/mpc55xxevb: Fix format warning
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 f6edb56..505cd70 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);
}
}
More information about the vc
mailing list