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)
|
rtems_monitor_dump_notepad(uint32_t *notepad)
|
||||||
{
|
{
|
||||||
int length = 0;
|
int length = 0;
|
||||||
|
|
||||||
|
if (rtems_configuration_get_notepads_enabled()) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
|
for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
|
||||||
if (notepad[i])
|
if (notepad[i])
|
||||||
length += fprintf(stdout,"%d: 0x%" PRIx32, i, notepad[i]);
|
length += fprintf(stdout,"%d: 0x%" PRIx32, i, notepad[i]);
|
||||||
|
}
|
||||||
|
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user