[PATCH 3/6] gen5200/mscan/mscan.c: Fix printf() format warning

Joel Sherrill joel at rtems.org
Mon Oct 8 13:26:44 UTC 2018


---
 bsps/powerpc/gen5200/mscan/mscan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/powerpc/gen5200/mscan/mscan.c b/bsps/powerpc/gen5200/mscan/mscan.c
index e36b622..ef1809e 100644
--- a/bsps/powerpc/gen5200/mscan/mscan.c
+++ b/bsps/powerpc/gen5200/mscan/mscan.c
@@ -748,7 +748,7 @@ rtems_status_code mscan_channel_initialize(rtems_device_major_number major,
 
   /* Set up interrupts */
   if (!BSP_install_rtems_irq_handler(&(mpc5200_mscan_irq_data[minor])))
-    rtems_panic("Can't attach MPC5x00 MSCAN interrupt handler %d\n", minor);
+    rtems_panic("Can't attach MPC5x00 MSCAN interrupt handler %ld\n", minor);
 
   /* basic setup for channel info. struct. */
   chan->regs = (mscan *) &(mpc5200.mscan[minor]);
-- 
1.8.3.1




More information about the devel mailing list