mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
bsps/powerpc/gen5200/mscan/mscan.c: Fix format specifier warning
Calling rtems_panic() and should have used %ul.
This commit is contained in:
committed by
Amar Takhar
parent
54f8249915
commit
86253b9e05
@@ -31,6 +31,7 @@
|
|||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
@@ -761,8 +762,12 @@ rtems_status_code mscan_channel_initialize(rtems_device_major_number major,
|
|||||||
(rtems_id *) & (chan->tx_rb_sid));
|
(rtems_id *) & (chan->tx_rb_sid));
|
||||||
|
|
||||||
/* Set up interrupts */
|
/* Set up interrupts */
|
||||||
if (!BSP_install_rtems_irq_handler(&(mpc5200_mscan_irq_data[minor])))
|
if (!BSP_install_rtems_irq_handler(&(mpc5200_mscan_irq_data[minor]))) {
|
||||||
rtems_panic("Can't attach MPC5x00 MSCAN interrupt handler %ld\n", minor);
|
rtems_panic(
|
||||||
|
"Can't attach MPC5x00 MSCAN interrupt handler %" PRIu32 "\n",
|
||||||
|
minor
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/* basic setup for channel info. struct. */
|
/* basic setup for channel info. struct. */
|
||||||
chan->regs = (mscan *) &(mpc5200.mscan[minor]);
|
chan->regs = (mscan *) &(mpc5200.mscan[minor]);
|
||||||
|
|||||||
Reference in New Issue
Block a user