summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-05-23 15:27:34 +1000
committerChris Johns <chrisj@rtems.org>2016-05-25 15:47:34 +1000
commit8f9d07bbbcc8ce216ab69021c20d2825aab14243 (patch)
tree5630a2eab216f72a17eeb3debbcab17536ad6d21
parentlibfs/jff2: Avoid printk format warnings. (diff)
downloadrtems-8f9d07bbbcc8ce216ab69021c20d2825aab14243.tar.bz2
bsp/shared: Fix printk warnings.
-rw-r--r--c/src/lib/libbsp/shared/src/irq-default-handler.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/shared/src/irq-default-handler.c b/c/src/lib/libbsp/shared/src/irq-default-handler.c
index fd0175f0f1..f1d1e38b0a 100644
--- a/c/src/lib/libbsp/shared/src/irq-default-handler.c
+++ b/c/src/lib/libbsp/shared/src/irq-default-handler.c
@@ -12,11 +12,13 @@
* http://www.rtems.org/license/LICENSE.
*/
-#include <rtems/bspIo.h>
+#include <inttypes.h>
+
+#include <rtems/print.h>
#include <bsp/irq-generic.h>
void bsp_interrupt_handler_default(rtems_vector_number vector)
{
- printk("spurious interrupt: %u\n", vector);
+ printk("spurious interrupt: %" PRIu32 "\n", vector);
}