[rtems commit] rtems/inttypes.h epiphany_sim/irq/irq.c: Add PRIdrtems_vector_number and use it
Joel Sherrill
joel at rtems.org
Tue Apr 25 14:41:29 UTC 2017
Module: rtems
Branch: master
Commit: 7db09923fb11ed527d05762ec65f5c2dfeabbe75
Changeset: http://git.rtems.org/rtems/commit/?id=7db09923fb11ed527d05762ec65f5c2dfeabbe75
Author: Joel Sherrill <joel at rtems.org>
Date: Tue Apr 25 11:42:18 2017 -0500
rtems/inttypes.h epiphany_sim/irq/irq.c: Add PRIdrtems_vector_number and use it
---
c/src/lib/libbsp/epiphany/epiphany_sim/irq/irq.c | 4 +++-
cpukit/include/rtems/inttypes.h | 3 +++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/c/src/lib/libbsp/epiphany/epiphany_sim/irq/irq.c b/c/src/lib/libbsp/epiphany/epiphany_sim/irq/irq.c
index 323aa07..057a0f7 100644
--- a/c/src/lib/libbsp/epiphany/epiphany_sim/irq/irq.c
+++ b/c/src/lib/libbsp/epiphany/epiphany_sim/irq/irq.c
@@ -37,13 +37,15 @@
#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
*/
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()
diff --git a/cpukit/include/rtems/inttypes.h b/cpukit/include/rtems/inttypes.h
index 1d767d9..0d30635 100644
--- a/cpukit/include/rtems/inttypes.h
+++ b/cpukit/include/rtems/inttypes.h
@@ -137,6 +137,9 @@ extern "C" {
/* ioctl_command_t */
#define PRIdioctl_command_t PRId32
+/* rtems_vector_number */
+#define PRIdrtems_vector_number PRId32
+
/**@}*/
#ifdef __cplusplus
More information about the vc
mailing list