From a54866e910733c89fa38045dfcd9ccb49e75603b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 24 Mar 2015 11:28:32 +0100 Subject: 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 e519447ac3..ff54d7946c 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; } -- cgit v1.2.3