[rtems commit] monitor: Fix notepad dump
Sebastian Huber
sebh at rtems.org
Tue Mar 24 13:36:30 UTC 2015
Module: rtems
Branch: master
Commit: a54866e910733c89fa38045dfcd9ccb49e75603b
Changeset: http://git.rtems.org/rtems/commit/?id=a54866e910733c89fa38045dfcd9ccb49e75603b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Mar 24 11:28:32 2015 +0100
monitor: Fix notepad dump
---
cpukit/libmisc/monitor/mon-prmisc.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/cpukit/libmisc/monitor/mon-prmisc.c b/cpukit/libmisc/monitor/mon-prmisc.c
index e519447..ff54d79 100644
--- a/cpukit/libmisc/monitor/mon-prmisc.c
+++ b/cpukit/libmisc/monitor/mon-prmisc.c
@@ -252,11 +252,14 @@ int
rtems_monitor_dump_notepad(uint32_t *notepad)
{
int length = 0;
- int i;
- for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
- if (notepad[i])
- length += fprintf(stdout,"%d: 0x%" PRIx32, i, notepad[i]);
+ if (rtems_configuration_get_notepads_enabled()) {
+ int i;
+
+ for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
+ if (notepad[i])
+ length += fprintf(stdout,"%d: 0x%" PRIx32, i, notepad[i]);
+ }
return length;
}
More information about the vc
mailing list