Define errMessage

Define Documentation

errMessage(S, PM)

errMessage is a macro so it can get the file and line number. It prints the message, the status symbol and string values, and the name of the task which invoked errMessage. It also prints the name of the source file and the line number from which the call was issued.

The message to print should not include a newline as one is added implicitly.

The status code used for the 1st argument is:

  • 0: Find latest vxWorks or Unix error (errno value).

  • -1: Don’t report status.

  • Other: Use this status code and lookup the string value

Parameters
  • S – Status code

  • PM – The message to print