[PATCH 4/9] bsp/shared: Fix printk warnings.

Chris Johns chrisj at rtems.org
Mon May 23 06:55:43 UTC 2016


---
 c/src/lib/libbsp/shared/src/irq-default-handler.c | 6 ++++--
 1 file 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 fd0175f..f1d1e38 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);
 }
-- 
2.4.6




More information about the devel mailing list