diff options
Diffstat (limited to 'riff/DUT.cpp')
-rw-r--r-- | riff/DUT.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/riff/DUT.cpp b/riff/DUT.cpp index 747727d..e48b7f1 100644 --- a/riff/DUT.cpp +++ b/riff/DUT.cpp @@ -60,6 +60,7 @@ DUT::~DUT() if (0 != error) { logger_.log(Logger::ERR, "LCD ERROR: Failed to destroy LCD context %d", error); + displayLCDError(error); } else { logger_.log(Logger::INFO, "LCD context destroyed successfully"); } @@ -96,6 +97,7 @@ void DUT::executeSequence() if ((error != 0) && (!strcmp((*i)->get_command_name(), "INITIALIZE_DUT"))) { errorcode_ = error; } else if ((error != 0) && (strcmp((*i)->get_command_name(), "SHUTDOWN"))) { + displayLCDError(error); continue; } @@ -112,4 +114,18 @@ void* DUT::ExecutionThreadFunction(void* arg) return 0; } +void DUT::displayLCDError(uint32 errorno) +{ + char ShortDescription[MAX_LCD_SHORTDESC], LongDescription[MAX_LCD_LONGDESC]; + + memset(LongDescription, 0x00, MAX_LCD_LONGDESC); + memset(ShortDescription, 0x00, MAX_LCD_SHORTDESC); + GetLoaderErrorDescription(errorno, (uint8 *)ShortDescription, (uint8 *)LongDescription, MAX_LCD_SHORTDESC, MAX_LCD_LONGDESC); + if (strlen(LongDescription) != 0) { + logger_.log(Logger::ERR, "LCD ERROR %d : %s", errorno, LongDescription); + } + + return; +} + /* @} */ |