sscargal / pmemchk

MIT License
0 stars 1 forks source link

[Rules] Find and replace 'echo' statements with their function name #137

Closed sscargal closed 2 years ago

sscargal commented 2 years ago

Some of the rules use legacy echo statements with the message type, eg:

  if [ "${ERR_STATE}" = true ] ; then
    echo "${STR_FAIL} ${FUNCNAME[0]} : One or more PMem modules reported an unexpected LockState status. See previous errors."

These echo statements should be replaced with their equivalent function, ie:

  if [ "${ERR_STATE}" = true ] ; then
    fail_msg "One or more PMem modules reported an unexpected LockState status. See previous errors."

See common/common for a list of implemented message type functions