[rtems commit] bsp/shared: Fix printk warnings.

Chris Johns chrisj at rtems.org
Wed May 25 06:56:44 UTC 2016


Module:    rtems
Branch:    master
Commit:    8f9d07bbbcc8ce216ab69021c20d2825aab14243
Changeset: http://git.rtems.org/rtems/commit/?id=8f9d07bbbcc8ce216ab69021c20d2825aab14243

Author:    Chris Johns <chrisj at rtems.org>
Date:      Mon May 23 15:27:34 2016 +1000

bsp/shared: Fix printk warnings.

---

 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);
 }




More information about the vc mailing list