cr_perror(3)cr_perror(3)NAMEcr_perror - print a libcrash error or warning message
prints to standard error an error or warning message corresponding to
error, which should be the return value from an immediately previous
call to one of the libcrash calls. The message describes the problem
that occurred, explains its implications when appropriate, and gives
corrective action where appropriate.
If called with a zero error value, indicating success, prints nothing.
Therefore, it can be called after each libcrash call without harm. (If
called after with the flag set, repeated error messages may result.)
crash_cb should be the same crash dump descriptor as was passed to the
call that returned error. If the call was pass the crash dump descrip‐
tor returned by that call, even if it is NULL.
If error is indicating that the system variable contains the error
information, will refer to to print the appropriate message. In these
cases it is critical that be called immediately after the offending
libcrash call returns.
was developed by HP.
SEE ALSOcr_open(3), cr_verify(3), libcrash(5).