[rtems commit] or1k/generic_or1k/irq/irq.c: Include <rtems/inttypes.h> and fix printf() format warning
Joel Sherrill
joel at rtems.org
Tue Apr 25 23:14:15 UTC 2017
Module: rtems
Branch: master
Commit: ab77827598b815de8a02a5b2d41f9dbfeb4d0745
Changeset: http://git.rtems.org/rtems/commit/?id=ab77827598b815de8a02a5b2d41f9dbfeb4d0745
Author: Joel Sherrill <joel at rtems.org>
Date: Tue Apr 25 20:01:10 2017 -0500
or1k/generic_or1k/irq/irq.c: Include <rtems/inttypes.h> and fix printf() format warning
---
c/src/lib/libbsp/or1k/generic_or1k/irq/irq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/c/src/lib/libbsp/or1k/generic_or1k/irq/irq.c b/c/src/lib/libbsp/or1k/generic_or1k/irq/irq.c
index c3c4d6d..00d53d7 100644
--- a/c/src/lib/libbsp/or1k/generic_or1k/irq/irq.c
+++ b/c/src/lib/libbsp/or1k/generic_or1k/irq/irq.c
@@ -16,6 +16,7 @@
#include <bsp/irq.h>
#include <bsp/irq-generic.h>
+#include <rtems/inttypes.h>
/* Almost all of the jobs that the following functions should
* do are implemented in cpukit
@@ -23,7 +24,7 @@
void bsp_interrupt_handler_default(rtems_vector_number vector)
{
- printk("spurious interrupt: %u\n", vector);
+ printk("spurious interrupt: %" PRIdrtems_vector_number "\n", vector);
}
rtems_status_code bsp_interrupt_facility_initialize()
More information about the vc
mailing list