forked from Imagelibrary/rtems
monitor: Fix notepad dump
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user