monitor: Fix notepad dump

This commit is contained in:
Sebastian Huber
2015-03-24 11:28:32 +01:00
parent ad57a59bac
commit a54866e910

View File

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