From 7093646b95513ff6c2e5b84e1c47cf170451e6b9 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 2 Oct 2009 15:54:47 +0000 Subject: [PATCH] =?UTF-8?q?2009-10-02=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libmisc/monitor/mon-driver.c: Fix warning if defined(RTEMS_USE_16_BIT_OBJECT). --- cpukit/ChangeLog | 2 ++ cpukit/libmisc/monitor/mon-driver.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 83ec9cbe78..c582c9eb71 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,7 @@ 2009-10-02 Ralf Corsépius + * libmisc/monitor/mon-driver.c: Fix warning if + defined(RTEMS_USE_16_BIT_OBJECT). * libmisc/monitor/mon-prmisc.c: Fix warning if defined(RTEMS_USE_16_BIT_OBJECT). diff --git a/cpukit/libmisc/monitor/mon-driver.c b/cpukit/libmisc/monitor/mon-driver.c index 4b84d63f1d..c5c2c468b9 100644 --- a/cpukit/libmisc/monitor/mon-driver.c +++ b/cpukit/libmisc/monitor/mon-driver.c @@ -111,8 +111,11 @@ rtems_monitor_driver_dump( { uint32_t length = 0; +#if defined(RTEMS_USE_16_BIT_OBJECT) + length += fprintf(stdout," %" PRId16 "", monitor_driver->id); +#else length += fprintf(stdout," %" PRId32 "", monitor_driver->id); - +#endif length += rtems_monitor_pad(13, length); length += fprintf(stdout,"init: "); length += rtems_monitor_symbol_dump(&monitor_driver->initialization, verbose);