Alexander Amelkin 67928205e7
nm: Refactor error checking
Make chk_nm_rsp() search for the codes really defined in the
NM dictionary and not just check some arbitrary completion codes
range. For all codes not defined in NM dictionary, print strings
from the generic IPMI completion codes dictionary.

Rename chk_nm_rsp() to is_nm_err() to better reflect the purpose
of the function. Make it 'bool'. Use centralized exiting for the
function.

Also fix wording for invalid NM ID.

End-user-impact: On invalid responses from the NM, instead of
                 "A valid NM command was not returned!" accompanied
                 by a single byte of data, the following message
                 with full 3 bytes of data will now be printed:
                 "No valid NM ID in response!"
Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
2019-08-30 13:33:19 +03:00
..
2019-08-30 13:33:18 +03:00
2018-11-23 16:41:06 +03:00
2019-06-18 16:43:41 +03:00
2019-03-04 12:22:23 +03:00
2019-08-30 13:33:19 +03:00
2018-08-21 17:30:25 +03:00
2019-08-29 16:24:39 +03:00