diff options
Diffstat (limited to 'src/usr/errl')
-rw-r--r-- | src/usr/errl/errlentry.C | 7 | ||||
-rw-r--r-- | src/usr/errl/plugins/errludcallout.H | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C index 86d94396e..5c1c681a5 100644 --- a/src/usr/errl/errlentry.C +++ b/src/usr/errl/errlentry.C @@ -779,8 +779,8 @@ void ErrlEntry::setSubSystemIdBasedOnCallouts() // figure out the highest priority callout, just grab // the first one if there are several with the same // priority. - if( highestPriorityCallout == NULL || - ( pData->priority > highestPriorityCallout->priority) ) + if( (highestPriorityCallout == NULL) || + (pData->priority > highestPriorityCallout->priority) ) { highestPriorityCallout = pData; } @@ -789,7 +789,8 @@ void ErrlEntry::setSubSystemIdBasedOnCallouts() // if this pointer is not null it will be pointing to the // highest priority entry - if( highestPriorityCallout == NULL ) + if((highestPriorityCallout == NULL) || + (highestPriorityCallout->priority == HWAS::SRCI_PRIORITY_NONE) ) { // no callouts in log, add default callout for hb code and // add trace diff --git a/src/usr/errl/plugins/errludcallout.H b/src/usr/errl/plugins/errludcallout.H index a1cb7dfe6..f13570ab3 100644 --- a/src/usr/errl/plugins/errludcallout.H +++ b/src/usr/errl/plugins/errludcallout.H @@ -307,6 +307,7 @@ case HWAS::_type: i_parser.PrintString( "Procedure", #_type); break; { #define case_PRIORITY(_type) \ case HWAS::_type: i_parser.PrintString( "Priority", #_type); break; + case_PRIORITY(SRCI_PRIORITY_NONE) case_PRIORITY(SRCI_PRIORITY_LOW) case_PRIORITY(SRCI_PRIORITY_MEDC) case_PRIORITY(SRCI_PRIORITY_MEDB) |