fmtmsg.h

Overview

Related Modules:

UTILS

Description:

Provides a function for printing formatted messages.

You can use the function in the file to write messages (especially error messages) into the output device specified by classification.

Since:

1.0

Version:

1.0

Summary

Macros

Macro Name and Value

Description

MM_HARD   1

A hardware error occurred.

MM_SOFT   2

A software error occurred.

MM_FIRM   4

A firmware error occurred.

MM_APPL   8

An error is detected by an application.

MM_UTIL   16

An error is detected by a utility.

MM_OPSYS   32

An error is detected by the operating system.

MM_RECOVER   64

The error is recoverable.

MM_NRECOV   128

The error is non-recoverable.

MM_PRINT   256

Prints error messages on standard error (stderr).

MM_CONSOLE   512

Prints error messages on the system console.

MM_NULLMC   0L

Ignores the classification parameter.

MM_HALT   1

Fatal fault.

MM_ERROR   2

Error-level fault.

MM_WARNING   3

Warning condition.

MM_INFO   4

Informative message.

MM_NOSEV   0

No severity level is set, equivalent to MM_NULLSEV.

MM_OK   0

The function succeeded.

MM_NOTOK   (-1)

The function failed.

MM_NOMSG   1

Error writing to stderr.

MM_NOCON   4

Error writing to the console.

MM_NULLLBL   ((char)0)

Ignores the label parameter.

MM_NULLTXT   ((char)0)

Ignores the text parameter.

MM_NULLACT   ((char)0)

Ignores the action parameter.

MM_NULLTAG   ((char)0)

Ignores the tag parameter.

MM_NULLSEV   0

Ignores the severity parameter.

Functions

Function Name

Description

fmtmsg (long classification, const char label, int severity, const char text, const char action, const char tag)

int 

Prints formatted messages.